init
Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
Close stale issues and PRs / stale (push) Has been cancelled

This commit is contained in:
allhaileris
2026-02-16 15:50:16 +03:00
commit afb81b8278
13816 changed files with 3689732 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
# Contributor: HIME team
_pkgname=hime
pkgname=hime-git
pkgver=1101.0bb91a0
pkgrel=1
pkgdesc="A GTK2+/GTK3+ based universal input method platform"
arch=('x86_64')
url="http://hime-ime.github.io/"
license=('LGPL2' 'FDL' 'GPL2')
depends=('gtk2' 'libxtst')
makedepends=('git' 'gettext')
# uncomment and edit next line to enable those plugins
# makedepends+=('gtk3' 'qt5-base' 'anthy' 'libchewing')
optdepends=('gtk3: enable gtk3 im module'
'qt5-base: enable qt5 im module'
'anthy: enable Anthy input method'
'libchewing: enable Chewing input method')
conflicts=('hime')
provides=('hime')
source=("${_pkgname}::git+https://github.com/hime-ime/hime.git")
sha512sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
echo "$(git rev-list --count master).$(git rev-parse --short master)"
}
build() {
cd "${srcdir}/${_pkgname}"
./configure --prefix=/usr --qt5-im-module-path=/usr/lib/qt/plugins/platforminputcontexts/
make
}
package() {
cd "${srcdir}/${_pkgname}"
make DESTDIR="${pkgdir}" install
install -dm755 "${pkgdir}/usr/share/licenses/${_pkgname}/"
# install licence files
install -Dm644 fdl-1.2.txt gpl-2.0.txt lgpl-2.1.txt "${pkgdir}/usr/share/licenses/${_pkgname}/"
}

View File

@@ -0,0 +1,5 @@
FROM archlinux:latest
COPY entrypoint.sh /app/entrypoint.sh
ENTRYPOINT ["/app/entrypoint.sh"]

View File

@@ -0,0 +1,45 @@
#!/usr/bin/env bash
set -euo pipefail
set -x
separator() {
echo -e "\n\n\n\n\n"
}
format_check() {
make clang-format
git --no-pager diff --exit-code
}
# base
pacman -Syuu --noconfirm --needed \
base \
base-devel \
git
# dependencies
pacman -Syuu --noconfirm --needed \
clang \
libxtst \
gtk2 \
gtk3 \
anthy \
libchewing \
libappindicator-gtk2 \
libappindicator-gtk3 \
qt5-base
echo 'en_US.UTF-8 UTF-8' >/etc/locale.gen && locale-gen
set +x; separator; separator; separator; set -x
# enter GitHub workspace directory path
cd "$GITHUB_WORKSPACE"
# check code formatting
format_check
# configure and build
./configure --prefix=/usr --qt5-im-module-path=/usr/lib/qt/plugins/platforminputcontexts/
make -j "$(nproc)"

View File

@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -euo pipefail
topleveldir="$(git rev-parse --show-toplevel)"
archdir="$topleveldir/distro/archlinux"
pushd "$archdir" || exit 1
set -x
# clean up
rm -rf hime/ pkg/ src/
makepkg -sf
ls -ltr ./*.pkg.tar.*
set +x
popd || exit 1