From bd2bd62103289e4df95c893ad829ba390b425a5c Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 5 Feb 2021 08:28:58 +0100 Subject: extra/libproxy: fix pkgname-removal --- extra/libproxy/PKGBUILD | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'extra/libproxy/PKGBUILD') diff --git a/extra/libproxy/PKGBUILD b/extra/libproxy/PKGBUILD index 959b8906..2158a59b 100644 --- a/extra/libproxy/PKGBUILD +++ b/extra/libproxy/PKGBUILD @@ -12,14 +12,13 @@ optdepends_i686=('webkit2gtk: PAC proxy support (Webkit2gtk engine)') optdepends_pentium4=('webkit2gtk: PAC proxy support (Webkit2gtk engine)') optdepends_x86_64=('webkit2gtk: PAC proxy support (Webkit2gtk engine)') +eval "$( + declare -f package_libproxy-webkit \ + | sed ' + 2 a [ "${CARCH}" != i486 ] || return + ' +)" if [ "${CARCH}" = 'i486' ]; then - pkgname=( - $( - printf '%s\n' "${pkgname[@]}" | \ - grep -v '^libproxy-webkit' - ) - ) - unset package_libproxy-webkit eval "$( declare -f build | \ sed ' -- cgit v1.2.3-70-g09d2