Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/gpgme/PKGBUILD25
1 files changed, 25 insertions, 0 deletions
diff --git a/core/gpgme/PKGBUILD b/core/gpgme/PKGBUILD
index ac1ede8f..7a2b7671 100644
--- a/core/gpgme/PKGBUILD
+++ b/core/gpgme/PKGBUILD
@@ -8,3 +8,28 @@ prepare() {
cd ${pkgbase}-${pkgver}
patch -Np1 -i "$srcdir/0004-Avoid-Y2038-problem-on-32-bit-architectures.patch"
}
+
+# no GUI stuff on i486
+makedepends=(${makedepends[@]//qt5-base/})
+makedepends_i686+=(qt5-base)
+
+# i486-specific
+if [ "${CARCH}" = "i486" ]; then
+ # no Qt frontend subpackage
+ pkgname=(
+ $(
+ printf '%s\n' "${pkgname[@]}" | \
+ grep -vFx 'qgpgme'
+ )
+ )
+
+ eval "$(
+ declare -f package_gpgme | \
+ sed '
+ /rm.*qgpgme/d
+ '
+ )"
+fi
+
+makedepends_pentium4=("${makedepends_i686[@]}")
+