From 0066b01fd0eb3bf9267694964405eb43bc4284ed Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 11 Jan 2021 21:57:12 +0100 Subject: extra/mesa: do not remove pkgnames, but short-circuit package_$pkgname() instead --- extra/mesa/PKGBUILD | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/extra/mesa/PKGBUILD b/extra/mesa/PKGBUILD index d00f76ac..db37ecce 100644 --- a/extra/mesa/PKGBUILD +++ b/extra/mesa/PKGBUILD @@ -38,15 +38,6 @@ if [ "$CARCH" = 'i486' ]; then \,fakeinstall/usr/lib/libxatracker\.so\*,d ' )" - pkgname=( - $( - printf '%s\n' "${pkgname[@]}" \ - | grep -v '^vulkan-' \ - | grep -vxF opencl-mesa \ - | grep -vxF libva-mesa-driver \ - | grep -vxF mesa-vdpau - ) - ) fi eval "$( declare -f package_vulkan-intel package_vulkan-radeon | \ @@ -58,3 +49,14 @@ eval "$( )"') ' )" +for _pkgn in $( + printf '%s\n' "${pkgname[@]}" \ + | grep -x 'vulkan-\S\+\|opencl-mesa\|libva-mesa-driver\|mesa-vdpau' +); do + eval "$( + declare -f "package_${_pkgn}" \ + | sed ' + 2a [ "${CARCH}" != i486 ] || return + ' + )" +done -- cgit v1.2.3-70-g09d2