Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/core/gpgme
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-03-10 08:46:24 +0100
committerErich Eckner <git@eckner.net>2020-03-10 08:46:24 +0100
commit01da0d7b5ea4ed8a4ac6fae9398c1b257c249648 (patch)
treed4c3adaae734949dc6c2b500dfa52168d9f8b3d2 /core/gpgme
parent31c119761065e2c98b58480dacf534ce4deb6859 (diff)
core/gpgme: do not conditionally unset depends, rather put them into depends_i686 and depends_pentium4 to not confuse `makepkg --printsrcinfo`
Diffstat (limited to 'core/gpgme')
-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[@]}")