aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Correa Gómez <ablocorrea@hotmail.com>2023-12-11 01:18:31 +0100
committeromni <omni+alpine@hack.org>2023-12-16 21:40:43 +0000
commit2aafc9adc3702db3c7bbcef9b4a69350fcde4f61 (patch)
tree49435b2810c5d824fd246f588c25621d68f88793
parent8e394afe216a4143fa752758ef948e81b79e0d89 (diff)
community/ibus: enable gtk4, split gtk modules into subpackages
Otherwise, this pulls GTK2 into basically every GNOME-related installation. And provides overall a smaller base package
-rw-r--r--community/ibus/APKBUILD28
1 files changed, 25 insertions, 3 deletions
diff --git a/community/ibus/APKBUILD b/community/ibus/APKBUILD
index 7dca6850b5d..19b024fdb2a 100644
--- a/community/ibus/APKBUILD
+++ b/community/ibus/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=ibus
pkgver=1.5.29
-pkgrel=0
+pkgrel=1
pkgdesc="Next Generation Input Bus for Linux"
url="https://github.com/ibus/ibus/wiki"
arch="all"
@@ -10,8 +10,8 @@ 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
+ 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
@@ -22,6 +22,9 @@ subpackages="
$pkgname-lang
$pkgname-pyc
$pkgname-emoji
+ $pkgname-gtk2
+ $pkgname-gtk3
+ $pkgname-gtk4
$pkgname-bash-completion
"
source="https://github.com/ibus/ibus/releases/download/$pkgver/ibus-$pkgver-rc2.tar.gz"
@@ -43,6 +46,7 @@ build() {
--sysconfdir=/etc \
--enable-dconf \
--enable-wayland \
+ --enable-gtk4 \
--disable-memconf \
--enable-ui \
--disable-gtk-doc \
@@ -68,6 +72,24 @@ emoji() {
mv "$pkgdir"/usr/share/ibus/dicts "$subpkgdir"/usr/share/ibus
}
+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/lib/gtk-3.0/3.0.0
+}
+
+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__