Created
March 5, 2025 16:36
-
-
Save boydaihungst/42aec68691c93a2022f1b93e068f51a1 to your computer and use it in GitHub Desktop.
ibus-git PKGBUILD arch linux
This file contains hidden or 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: Campbell Jones <serebit at archlinux dot org> | |
# Contributor: Felix Yan <[email protected]> | |
pkgbase=ibus | |
pkgname=(ibus libibus) | |
pkgver=1.5.32 | |
pkgrel=2 | |
pkgdesc="Intelligent input bus for Linux/Unix" | |
arch=('x86_64') | |
url="https://github.com/ibus/ibus/wiki" | |
license=('LGPL-2.1-or-later') | |
depends=( | |
'at-spi2-core' | |
'cairo' | |
'dconf' | |
'gdk-pixbuf2' | |
'glib2' | |
'graphene' | |
'gtk3' | |
'gtk4' | |
'hicolor-icon-theme' | |
'libdbusmenu-glib' | |
'libdbusmenu-gtk3' | |
'libnotify' | |
'libx11' | |
'libxkbcommon' | |
'libxfixes' | |
'libxi' | |
'pango' | |
'python' | |
'python-gobject' | |
'wayland' | |
) | |
makedepends=( | |
'glib2-devel' | |
'gobject-introspection' | |
'gtk-doc' | |
'qt5-base' | |
'unicode-character-database' | |
'unicode-cldr' | |
'unicode-emoji' | |
'vala' | |
) | |
options=('!emptydirs') | |
source=("https://github.com/$pkgname/$pkgname/releases/download/${pkgver}-rc1/${pkgname}-${pkgver}-rc1.tar.gz") | |
b2sums=('SKIP') | |
build() { | |
cd "${pkgname}"-"${pkgver}-rc1" | |
./configure \ | |
--prefix=/usr \ | |
--libexecdir=/usr/lib/ibus \ | |
--sysconfdir=/etc \ | |
--enable-dconf \ | |
--enable-wayland \ | |
--enable-gtk-doc \ | |
--disable-gtk2 \ | |
--enable-gtk4 \ | |
--disable-memconf \ | |
--enable-ui \ | |
--disable-python2 \ | |
--with-python=python3 \ | |
--with-ucd-dir=/usr/share/unicode/ | |
make -C portal maintainer-clean-generic | |
gdbus-codegen --generate-c-code ibus-portal-dbus --c-namespace IBusPortal --interface-prefix org.freedesktop.IBus. portal/org.freedesktop.IBus.Portal.xml | |
sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool | |
make | |
} | |
package_ibus() { | |
depends+=("libibus=$pkgver") | |
cd ibus-${pkgver}-rc1 | |
make DESTDIR="$pkgdir" install | |
make -C src DESTDIR="$pkgdir" uninstall | |
make -C src DESTDIR="$pkgdir" install-dictDATA install-unicodeDATA | |
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) | |
optdepends=('python-gobject: for Python integration') | |
provides=('libibus-1.0.so') | |
cd ibus-${pkgver}-rc1 | |
make -C src DESTDIR="$pkgdir" install | |
make -C src DESTDIR="$pkgdir" uninstall-dictDATA uninstall-unicodeDATA | |
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