Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/gpgme/PKGBUILD32
1 files changed, 18 insertions, 14 deletions
diff --git a/core/gpgme/PKGBUILD b/core/gpgme/PKGBUILD
index d48edca2..8d29e2a1 100644
--- a/core/gpgme/PKGBUILD
+++ b/core/gpgme/PKGBUILD
@@ -19,20 +19,24 @@ eval "$(
makedepends=(${makedepends[@]//qt5-base/})
makedepends_i686+=(qt5-base)
-# i486-specific
-if [ "${CARCH}" = "i486" ]; then
- # no Qt frontend subpackage -> set it to empty
+# i486-specific: no Qt frontend subpackage
- package_qgpgme() {
- unset depends
- }
-
- eval "$(
- declare -f package_gpgme | \
- sed '
- /rm.*qgpgme/d
- '
- )"
-fi
+eval "$(
+ declare -f package_qgpgme | \
+ sed '
+ /^\s*\S*depends=/ {
+ h
+ s/=/_i686=/
+ p
+ g
+ s/=/_pentium4=/
+ }
+ 2 a [ "${CARCH}" != "i486" ] || return 0
+ '
+ declare -f package_gpgme | \
+ sed '
+ /rm.*qgpgme/ s/^/[ "${CARCH}" = "i486" ] || /
+ '
+)"
makedepends_pentium4=("${makedepends_i686[@]}")