diff options
author | Vitrum | 2019-01-03 17:38:25 +0300 |
---|---|---|
committer | Vitrum | 2019-01-03 17:38:25 +0300 |
commit | 4fb0d3eb74f20f6d41d2c2d189ac172284c1b0bf (patch) | |
tree | 8b15e443fa9beb99b4894719a12429f389e140bb | |
download | aur-4fb0d3eb74f20f6d41d2c2d189ac172284c1b0bf.tar.gz |
Keyman v11.0.101 beta
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 103 |
2 files changed, 122 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..602d4cba3b99 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = keyman + pkgdesc = IBus engine supporting over 1,000 layouts (former KMFL) + pkgver = 11.0.101 + pkgrel = 1 + url = https://keyman.com/ + arch = i686 + arch = x86_64 + license = GPL + makedepends = meson + makedepends = help2man + depends = ibus + replaces = kmflcomp + replaces = libkmfl + replaces = ibus-kmfl + source = keyman-11.0.101.tar.gz::https://github.com/keymanapp/keyman/archive/linux-release-beta-11.0.101.tar.gz + md5sums = 06965fc5182601aea3a8e6d094c9c683 + +pkgname = keyman + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..517a01792c97 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,103 @@ +# Maintainer: Vitrum <wqdxosty1yhj@bk.ru> + +pkgname=keyman +pkgver=11.0.101 +pkgrel=1 +pkgdesc="IBus engine supporting over 1,000 layouts (former KMFL)" +arch=('i686' 'x86_64') +url="https://keyman.com/" +license=('GPL') +depends=('ibus') +makedepends=('meson' 'help2man') +replaces=('kmflcomp' 'libkmfl' 'ibus-kmfl') +source=("$pkgname-$pkgver.tar.gz::https://github.com/keymanapp/keyman/archive/linux-release-beta-$pkgver.tar.gz") +md5sums=('06965fc5182601aea3a8e6d094c9c683') + +prepare() { + _basedir="$srcdir/keyman-linux-release-beta-$pkgver/linux" + + cd "$_basedir/ibus-kmfl" + sed -i 's:${libexecdir}:/usr/lib/ibus:' src/kmfl.xml.in.in + + cd "$_basedir/ibus-keyman" + sed -i 's:${libexecdir}:/usr/lib/ibus:' src/keyman.xml.in.in + + cd "$_basedir/keyman-config/keyman_config/" + _majorvers=$(cat "$_basedir/../resources/VERSION.md") + sed -e "s/_VERSION_/${pkgver}/" \ + -e "s/_MAJORVERSION_/${_majorvers}/" \ + version.py.in > version.py +} + +build() { + _basedir="$srcdir/keyman-linux-release-beta-$pkgver/linux" + + # keyboardprocessor + cd "$_basedir" + meson --prefix /usr --buildtype=plain ../common/engine/keyboardprocessor keyboardprocessor + ninja -C keyboardprocessor + + # extract headers + mkdir -p "$srcdir/include/kmfl" + cp "$_basedir/kmflcomp/include/"*.h "$srcdir/include/kmfl" + cp "$_basedir/libkmfl/include/"*.h "$srcdir/include/kmfl" + + # keyman base binaries + for proj in kmflcomp libkmfl ibus-kmfl ibus-keyman; do + cd "$_basedir/$proj" + autoreconf --install --force + ./configure \ + CPPFLAGS="-I$srcdir/include" \ + LDFLAGS="-L$_basedir/kmflcomp/src -L$_basedir/libkmfl/src" \ + KEYMAN_PROC_CFLAGS="-I$_basedir/keyboardprocessor/include -I$_basedir/../common/engine/keyboardprocessor/include" \ + KEYMAN_PROC_LIBS="-L$_basedir/libkmfl/src -L$_basedir/keyboardprocessor/src -lkmnkbp0" \ + --prefix=/usr \ + --libexecdir=/usr/lib/ibus \ + --datadir=/usr/share + make + done + + # keyman-config + cd "$_basedir/keyman-config" + python setup.py build + mkdir -p debian/man + declare -A _km=( + ['km-package-get']='Download a Keyman keyboard package' + ['km-package-install']='Install a Keyman keyboard package' + ['km-config']='Keyman keyboards installation and information' + ['km-kvk2ldml']='Convert a Keyman on-screen keyboard file to LDML' + ['km-package-list-installed']='List installed Keyman keyboard packages' + ['km-package-uninstall']='Uninstall a Keyman keyboard package' + ) + for _command in "${!_km[@]}"; do + help2man --name="${_km[$_command]}" \ + --opt-include="maninc/$_command.inc" \ + --no-info \ + --output="debian/man/$_command.1" \ + ./$_command + done +} + +package() { + _basedir="$srcdir/keyman-linux-release-beta-$pkgver/linux" + + # keyboardprocessor + cd "$_basedir" + DESTDIR="$pkgdir" ninja -C keyboardprocessor install + + # keyman base binaries + for proj in kmflcomp libkmfl ibus-kmfl ibus-keyman; do + cd "$_basedir/$proj" + make DESTDIR="$pkgdir/" install + done + + # keyman-config + cd "$_basedir/keyman-config" + python setup.py install --root="$pkgdir/" --optimize=1 --skip-build + install -Dm644 --target-directory="$pkgdir/usr/share/keyman/icons" keyman_config/icons/* + install -Dm644 --target-directory="$pkgdir/usr/share/man/man1" debian/man/*.1 +} + +#post_install() { +# ibus restart +#} |