summaryrefslogtreecommitdiff
path: root/extra/ibus/PKGBUILD
blob: f533da4a1738a06ef435ec63d9e3b41916b9d616 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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