Created
August 29, 2021 10:30
-
-
Save zhanghai/355203e1aef18623c0e5577793f19a43 to your computer and use it in GitHub Desktop.
ibus 1.5.25-2 PKGBUILD with candidate panel position fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Felix Yan <[email protected]> | |
pkgbase=ibus | |
pkgname=(ibus libibus) | |
pkgver=1.5.25 | |
pkgrel=2 | |
pkgdesc="Next Generation Input Bus for Linux" | |
arch=('x86_64') | |
url="https://github.com/ibus/ibus/wiki" | |
license=('LGPL') | |
depends=('dconf' 'gtk3' 'hicolor-icon-theme' 'libnotify' 'python-dbus' 'python-gobject' | |
'iso-codes' 'librsvg') | |
makedepends=('gobject-introspection' 'vala' 'intltool' 'gnome-common' 'gtk-doc' 'gtk4' 'gtk2' | |
'qt5-base' 'unicode-cldr' 'unicode-character-database' 'unicode-emoji' 'git') | |
options=('!emptydirs') | |
_commit=cfb263f04f82a83dd94f6eedcd5017d40a4a1a05 # 1.5.25 | |
source=("git+https://github.com/ibus/ibus#commit=$_commit" | |
# Download the patch | |
'https://patch-diff.githubusercontent.com/raw/ibus/ibus/pull/2339.patch') | |
sha512sums=('SKIP' | |
'3329adc05c8328c69380a5bbe90deb0a583cda511b2edc9a2200b2ac36cece285b88708058f220f636194945eac1e27f361aea87ef98058bc6f6e9206b2725c0') | |
pkgver() { | |
cd ibus | |
git describe --tags | sed 's/-/+/g' | |
} | |
prepare() { | |
cd ibus | |
# Apply the patch | |
patch --forward --strip=1 --input="${srcdir}/2339.patch" | |
sed -i 's|$(libibus) $(libibus_emoji_dialog)|$(libibus_emoji_dialog) $(libibus)|' ui/gtk3/Makefile.am | |
NOCONFIGURE=1 ./autogen.sh | |
} | |
build() { | |
cd ibus | |
./configure \ | |
--prefix=/usr \ | |
--libexecdir=/usr/lib/ibus \ | |
--sysconfdir=/etc \ | |
--enable-dconf \ | |
--enable-wayland \ | |
--enable-gtk-doc \ | |
--enable-gtk4 \ | |
--disable-memconf \ | |
--enable-ui \ | |
--disable-python2 \ | |
--with-python=python3 \ | |
--with-ucd-dir=/usr/share/unicode/ | |
sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool | |
make | |
} | |
package_ibus() { | |
depends+=("libibus=$pkgver") | |
cd ibus | |
make DESTDIR="$pkgdir" install | |
make -C src DESTDIR="$pkgdir" uninstall | |
make -C bindings DESTDIR="$pkgdir" uninstall | |
make DESTDIR="$pkgdir" uninstall-pkgconfigDATA | |
} | |
package_libibus() { | |
pkgdesc="IBus support library" | |
depends=(libg{lib,object,io}-2.0.so) | |
provides=('libibus-1.0.so') | |
cd ibus | |
make -C src DESTDIR="$pkgdir" install | |
make -C bindings DESTDIR="$pkgdir" install | |
make DESTDIR="$pkgdir" install-pkgconfigDATA | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment