# Maintainer: pkgname=ibus pkgver=1.5.28 pkgrel=0 pkgdesc="Next Generation Input Bus for Linux" url="https://github.com/ibus/ibus/wiki" arch="all" license="LGPL-2.1-or-later" depends=" dconf hicolor-icon-theme iso-codes dbus py3-gobject3 " makedepends=" bash dconf-dev gtk+2.0-dev gtk+3.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 " subpackages=" $pkgname-dev $pkgname-doc $pkgname-lang $pkgname-pyc $pkgname-emoji $pkgname-bash-completion " source=" https://github.com/ibus/ibus/releases/download/$pkgver/ibus-$pkgver.tar.gz $pkgname-fix-x11-stuck.patch::https://github.com/ibus/ibus/commit/8f706d160631f1ffdbfa16543a38b9d5f91c16ad.diff 0001-Use-more-portable-call-to-mktemp.patch " install="$pkgname.post-install" prepare() { default_prepare # disable-gtk-doc doesn't prevent install of what exists rm -r docs/reference/ibus/html/ } build() { ./configure \ --prefix=/usr \ --libexecdir=/usr/lib/ibus \ --sysconfdir=/etc \ --enable-dconf \ --enable-wayland \ --disable-memconf \ --enable-ui \ --disable-gtk-doc \ --disable-systemd-services \ --enable-emoji-dict \ --with-ucd-dir=/usr/share/unicode/ make } check() { ./bus/ibus-daemon --version } package() { make DESTDIR="$pkgdir" install } emoji() { pkgdesc="$pkgdesc (emojis)" depends="$pkgname unicode-character-database cldr-emoji-annotation" mkdir -p "$subpkgdir"/usr/share/ibus mv "$pkgdir"/usr/share/ibus/dicts "$subpkgdir"/usr/share/ibus } pyc() { default_pyc amove usr/share/ibus/setup/__pycache__ } sha512sums=" 5bfb9158a5810d38af900775ed30406823872c431ef4772b476afa7b58c120ef508a51b961620ea6003549f1f49cf05484992beee8677b138f1162afc73ab247 ibus-1.5.28.tar.gz 79d9f20857a182b1f2baccff73b234b8f38b510fed9d38c20c402566f3992199d022729e86489ed102794f48ba709b68421844a17d3744fead3d52800a12ddd5 ibus-fix-x11-stuck.patch 1e2e62ce52becf75d794c403e8f21bb72e8406aacbdbc5189f62a3b7c54166c40da0032d3f3865f5a23d9d2c782f974b7bcc9ba5ce437d9eb435dd3db3ff0b06 0001-Use-more-portable-call-to-mktemp.patch "