diff options
author | Erich Eckner <git@eckner.net> | 2021-01-11 22:10:21 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-01-11 22:10:21 +0100 |
commit | 92954c9e14d21b4b7f39ee2658291f30c2fb6c24 (patch) | |
tree | 2e58e5c57816be45037351a55e5654d4cf76cf7b /extra | |
parent | 0066b01fd0eb3bf9267694964405eb43bc4284ed (diff) | |
download | packages-92954c9e14d21b4b7f39ee2658291f30c2fb6c24.tar.xz |
extra/mesa: really fix this pkgname stuff (hopefully)
Diffstat (limited to 'extra')
-rw-r--r-- | extra/mesa/PKGBUILD | 22 |
1 files changed, 10 insertions, 12 deletions
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 |