Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/ibus/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2021-04-10 11:04:44 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2021-04-10 11:04:44 +0200
commitdc9801c05d018acac477f2db3e497c57fc978f39 (patch)
tree110da99265fb36f22cba6b489b3238044a2dd1dd /extra/ibus/PKGBUILD
parent711af449afd9bc446ab0bf9f858e09736c296b24 (diff)
extra/ibus: i486 build with no vala, gtk3, qt5-base
Diffstat (limited to 'extra/ibus/PKGBUILD')
-rw-r--r--extra/ibus/PKGBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/extra/ibus/PKGBUILD b/extra/ibus/PKGBUILD
new file mode 100644
index 00000000..f533da4a
--- /dev/null
+++ b/extra/ibus/PKGBUILD
@@ -0,0 +1,27 @@
+# break cycle with Qt, gtk3 on i486
+# Vala is not bootstrapped on i486
+# disable wayland for now
+if [ "$CARCH" = 'i486' ]; then
+ depends=(${depends[@]//gtk3/})
+ makedepends=(${makedepends[@]//qt5-base/})
+ makedepends=(${makedepends[@]//vala/})
+ eval "$(
+ declare -f build | \
+ sed '
+ s@./configure@./configure --disable-gtk3 --enable-vala=no --disable-engine --disable-tools@
+ s@--enable-wayland@--disable-wayland@
+ '
+ )"
+
+ # some parts of the engine and the tools still require Vala
+ source+=('ibus-novala.patch')
+ sha512sums+=('4618394f118e67e340831beb71929bed06be4335d2e0e8ce9793459cf19b0bf0255f7757471433036a362b8beb63f12e79832e40b98435e4209bbe04d590b070')
+
+ eval "$(
+ declare -f prepare | \
+ sed '
+ /cd/ a \
+ patch -Np1 -i "$srcdir/ibus-novala.patch"
+ '
+ )"
+fi