Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-10-11 10:51:29 +0200
committerErich Eckner <git@eckner.net>2018-10-11 10:51:40 +0200
commit3bdb6da7cb41d1961533556f0d3e0018cbf13f06 (patch)
treeb9528994d3b9f607c86c23d3c615018b2e9c2ca5 /extra
parentd3703bea4f193f2e340fe9eb55a6d6d54c9c00b0 (diff)
extra/mesa: disable vulkan,i915,i965 on i486
Diffstat (limited to 'extra')
-rw-r--r--extra/mesa/PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/extra/mesa/PKGBUILD b/extra/mesa/PKGBUILD
index 380cad2f..7ee5e8b1 100644
--- a/extra/mesa/PKGBUILD
+++ b/extra/mesa/PKGBUILD
@@ -12,3 +12,32 @@ eval "$(
s@_install fakeinstall/usr/lib/libswrAVX.*@#\0@g
'
)"
+
+# do not build/package vulkan on i486
+# do not build i915,i965 on i486
+if [ "$CARCH" = 'i486' ]; then
+ eval "$(
+ declare -f build | \
+ sed '
+ s/\(-D vulkan-drivers=\)\S\+ /\1 /
+ s/\(-D dri-drivers=\(\S\+,\)\?\)i915,/\1/
+ s/\(-D dri-drivers=\(\S\+,\)\?\)i965,/\1/
+ '
+ )"
+ pkgname=(
+ $(
+ printf '%s\n' "${pkgname}" | \
+ grep -v '^vulkan-'
+ )
+ )
+fi
+eval "$(
+ declare -f package_vulkan-intel package_vulkan-radeon | \
+ sed '
+ /^\s*{\s*$/ a arch=('"$(
+ printf '%s\n' "${arch[@]}" | \
+ grep -vxF 'i486' | \
+ tr '\n' ' '
+ )"')
+ '
+)"