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
Close stale issues and PRs / stale (push) Successful in 13s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
52 lines
1.5 KiB
Bash
52 lines
1.5 KiB
Bash
# Maintainer: Kevin Kim <root@hamonikr.org>
|
|
|
|
pkgname=nimf
|
|
pkgver=v1.3.5.r8.7e55f06
|
|
pkgrel=1
|
|
pkgdesc="Nimf is an input method framework."
|
|
arch=('any')
|
|
url="https://github.com/hamonikr/nimf"
|
|
license=('LGPL3')
|
|
makedepends=('binutils' 'autoconf' 'automake' 'gcc' 'make' 'glib2' 'intltool'
|
|
'gtk3' 'gtk2' 'qt5-base' 'qt6-base' 'libappindicator-gtk3' 'libayatana-appindicator' 'librsvg'
|
|
'noto-fonts-cjk' 'libhangul-git' 'anthy' 'librime' 'libxkbcommon'
|
|
'wayland' 'wayland-protocols' 'libxklavier' 'm17n-lib' 'm17n-db' 'gtk-doc')
|
|
depends=('glib2' 'gtk3' 'gtk2' 'qt5-base' 'qt6-base' 'libappindicator-gtk3' 'libhangul-git'
|
|
'anthy' 'librime' 'libxkbcommon' 'wayland' 'libxklavier' 'm17n-lib'
|
|
'm17n-db')
|
|
provides=('nimf-git')
|
|
conflicts=('nimf-git')
|
|
optdepends=('brise: Rime schema repository'
|
|
'noto-fonts-cjk: Google Noto CJK fonts')
|
|
source=("git+https://github.com/hamonikr/nimf.git")
|
|
md5sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd nimf
|
|
printf "%s" "$(git describe --long | sed 's/nimf-//' | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
|
|
}
|
|
|
|
build() {
|
|
cd nimf
|
|
./autogen.sh --prefix=/usr --enable-gtk-doc
|
|
make -j $(nproc)
|
|
}
|
|
|
|
package() {
|
|
cd nimf
|
|
make DESTDIR="${pkgdir}/" install
|
|
}
|
|
|
|
post_install() {
|
|
cat <<EOF
|
|
To use Nimf as your input method framework, add the following lines to your ~/.xprofile:
|
|
|
|
export GTK_IM_MODULE=nimf
|
|
export QT4_IM_MODULE="nimf"
|
|
export QT_IM_MODULE=nimf
|
|
export QT6_IM_MODULE=nimf
|
|
export XMODIFIERS="@im=nimf"
|
|
|
|
EOF
|
|
}
|