From 01da0d7b5ea4ed8a4ac6fae9398c1b257c249648 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 10 Mar 2020 08:46:24 +0100 Subject: core/gpgme: do not conditionally unset depends, rather put them into depends_i686 and depends_pentium4 to not confuse `makepkg --printsrcinfo` --- core/gpgme/PKGBUILD | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) (limited to 'core') 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[@]}") -- cgit v1.2.3-70-g09d2