From 035e1d552e34a7e8278d54cbeb802d85353dee1c Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 19 Jun 2019 13:35:00 +0200 Subject: core/linux: only drop graphviz for i486 if it was a makedepends at all - otherwise we add it for i686 and pentium4 in contrast to upstream --- core/linux/PKGBUILD | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'core') diff --git a/core/linux/PKGBUILD b/core/linux/PKGBUILD index b9155b3b..9e1e4ba2 100644 --- a/core/linux/PKGBUILD +++ b/core/linux/PKGBUILD @@ -12,9 +12,11 @@ for ((i=0; i<${#sha256sums[@]}; i++)); do fi done -makedepends=(${makedepends[@]/graphviz/}) -makedepends_i686+=(graphviz) -makedepends_pentium4=("${makedepends_i686[@]}") +if printf '%s\n' "${makedepends[@]}" | grep -qxF graphviz; then + makedepends=(${makedepends[@]/graphviz/}) + makedepends_i686+=(graphviz) + makedepends_pentium4=("${makedepends_i686[@]}") +fi eval "$( declare -f prepare | \ -- cgit v1.2.3-70-g09d2