diff options
Diffstat (limited to 'community/ibus/APKBUILD')
-rw-r--r-- | community/ibus/APKBUILD | 65 |
1 files changed, 43 insertions, 22 deletions
diff --git a/community/ibus/APKBUILD b/community/ibus/APKBUILD index 11bae699fc2..19b024fdb2a 100644 --- a/community/ibus/APKBUILD +++ b/community/ibus/APKBUILD @@ -1,6 +1,6 @@ -# Maintainer: Drew DeVault <sir@cmpwn.com> +# Maintainer: Will Sinatra <wpsinatra@gmail.com> pkgname=ibus -pkgver=1.5.24 +pkgver=1.5.29 pkgrel=1 pkgdesc="Next Generation Input Bus for Linux" url="https://github.com/ibus/ibus/wiki" @@ -10,30 +10,33 @@ depends=" dconf hicolor-icon-theme iso-codes dbus py3-gobject3 " makedepends=" - dconf-dev gtk+-dev gtk+3.0-dev libnotify-dev iso-codes-dev - gobject-introspection-dev vala intltool qt5-qtbase - automake autoconf gnome-common gtk-doc wayland-dev wayland-protocols - dbus-x11 unicode-character-database xz cldr-emoji-annotation + bash dconf-dev gtk+2.0-dev gtk+3.0-dev gtk4.0-dev + libnotify-dev iso-codes-dev gobject-introspection-dev vala qt5-qtbase + wayland-dev wayland-protocols + dbus-x11 unicode-character-database cldr-emoji-annotation + libdbusmenu-glib-dev libdbusmenu-gtk3-dev " subpackages=" $pkgname-dev $pkgname-doc $pkgname-lang + $pkgname-pyc $pkgname-emoji - $pkgname-bash-completion:bashcomp:noarch + $pkgname-gtk2 + $pkgname-gtk3 + $pkgname-gtk4 + $pkgname-bash-completion " -source=" - $pkgname-$pkgver.tar.gz::https://github.com/ibus/ibus/archive/$pkgver.tar.gz - 0001-Use-more-portable-call-to-mktemp.patch -" +source="https://github.com/ibus/ibus/releases/download/$pkgver/ibus-$pkgver-rc2.tar.gz" install="$pkgname.post-install" +#https://github.com/ibus/ibus/issues/2584 +builddir="$srcdir/$pkgname-$pkgver-rc2" prepare() { - # Fix all shebangs from 'python' to 'python3' - grep -r -l '#!/usr/bin/python' . | xargs sed -i '1s|python|python3|' - default_prepare - NOCONFIGURE=1 ./autogen.sh + + # disable-gtk-doc doesn't prevent install of what exists + rm -r docs/reference/ibus/html/ } build() { @@ -43,9 +46,11 @@ build() { --sysconfdir=/etc \ --enable-dconf \ --enable-wayland \ + --enable-gtk4 \ --disable-memconf \ --enable-ui \ --disable-gtk-doc \ + --disable-systemd-services \ --enable-emoji-dict \ --with-ucd-dir=/usr/share/unicode/ make @@ -67,13 +72,29 @@ emoji() { mv "$pkgdir"/usr/share/ibus/dicts "$subpkgdir"/usr/share/ibus } -bashcomp() { - depends="" - pkgdesc="Bash completions for $pkgname" - install_if="$pkgname=$pkgver-r$pkgrel bash-completion" +gtk2() { + install_if="$pkgname=$pkgver-r$pkgrel gtk+2.0" + + amove usr/lib/gtk-2.0/2.10.0 +} + +gtk3() { + install_if="$pkgname=$pkgver-r$pkgrel gtk+3.0" - amove usr/share/bash-completion + amove usr/lib/gtk-3.0/3.0.0 } -sha512sums="e5a0615d60f3b20e788fbdf62952ab549f7e866cb9c9b4dfe58bba30b5ad9829da7c188e7365c605e758e0a820de78151f319e2c7ec11b7e2c16e599c75ce2e2 ibus-1.5.24.tar.gz -1e2e62ce52becf75d794c403e8f21bb72e8406aacbdbc5189f62a3b7c54166c40da0032d3f3865f5a23d9d2c782f974b7bcc9ba5ce437d9eb435dd3db3ff0b06 0001-Use-more-portable-call-to-mktemp.patch" +gtk4() { + install_if="$pkgname=$pkgver-r$pkgrel gtk4.0" + + amove usr/lib/gtk-4.0/4.0.0 +} + +pyc() { + default_pyc + amove usr/share/ibus/setup/__pycache__ +} + +sha512sums=" +47dd39c9615783b6c157a25e8a2506dc2e1f440d56aa649ee8cb95a390cb4efab9c95e72ac84b5d042c25e350599b4d352ddc66f1385af6660d4a7a296e44ca7 ibus-1.5.29-rc2.tar.gz +" |