From 92954c9e14d21b4b7f39ee2658291f30c2fb6c24 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 11 Jan 2021 22:10:21 +0100 Subject: extra/mesa: really fix this pkgname stuff (hopefully) --- extra/mesa/PKGBUILD | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'extra/mesa') diff --git a/extra/mesa/PKGBUILD b/extra/mesa/PKGBUILD index db37ecce..4e8039b3 100644 --- a/extra/mesa/PKGBUILD +++ b/extra/mesa/PKGBUILD @@ -38,9 +38,18 @@ 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 | \ + declare -f package_vulkan-intel package_vulkan-radeon package_opencl-mesa package_libva-mesa-driver package_mesa-vdpau | \ sed ' /^\s*{\s*$/ a arch=('"$( printf '%s\n' "${arch[@]}" | \ @@ -49,14 +58,3 @@ 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