summaryrefslogtreecommitdiff
path: root/core/pinentry/PKGBUILD
blob: 3d372f635a9845129f06a61eb6b07ceb5d585f5d (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
# i486-specific
if [ "${CARCH}" = "i486" ]; then
  # no libsecret
  depends=(${depends[@]//libsecret/})
  eval "$(
    declare -f build | \
      sed '
        s/--enable-libsecret/--disable-libsecret/
      '
  )"

  # no GUI stuff
  makedepends=(${makedepends[@]//gtk2/})
  makedepends=(${makedepends[@]//qt5-base/})
  eval "$(
    declare -f build | \
      sed '
        s/--enable-pinentry-gtk2/--disable-pinentry-gtk2/
        s/--enable-pinentry-gnome3/--disable-pinentry-gnome3/
        s/--enable-pinentry-qt/--disable-pinentry-qt/
      '
  )"

  # no gcr
  makedepends=(${makedepends[@]//gcr/})
fi