Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2019-11-18 21:34:33 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2019-11-18 21:34:33 +0100
commit635a07a274e61e37fd7e1dbc56a1e5da22fb6876 (patch)
tree24ee45bb569fbec0d328cdb01ff92de588bf84b7
parente6aab594fc8cc8e35b77de03c607ad50055ec617 (diff)
core/gpgme: disabled Qt frontend on i486
-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[@]}")
+