From 635a07a274e61e37fd7e1dbc56a1e5da22fb6876 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Mon, 18 Nov 2019 21:34:33 +0100 Subject: core/gpgme: disabled Qt frontend on i486 --- core/gpgme/PKGBUILD | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'core/gpgme/PKGBUILD') 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[@]}") + -- cgit v1.2.3-70-g09d2