diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2019-11-18 21:34:33 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2019-11-18 21:34:33 +0100 |
commit | 635a07a274e61e37fd7e1dbc56a1e5da22fb6876 (patch) | |
tree | 24ee45bb569fbec0d328cdb01ff92de588bf84b7 /core | |
parent | e6aab594fc8cc8e35b77de03c607ad50055ec617 (diff) | |
download | packages-635a07a274e61e37fd7e1dbc56a1e5da22fb6876.tar.xz |
core/gpgme: disabled Qt frontend on i486
Diffstat (limited to 'core')
-rw-r--r-- | core/gpgme/PKGBUILD | 25 |
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[@]}") + |