summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extra/mesa/PKGBUILD20
1 files 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