summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre/mesa/PKGBUILD16
1 files changed, 9 insertions, 7 deletions
diff --git a/libre/mesa/PKGBUILD b/libre/mesa/PKGBUILD
index ead5a47b5..f9112f6fa 100644
--- a/libre/mesa/PKGBUILD
+++ b/libre/mesa/PKGBUILD
@@ -124,8 +124,10 @@ _install() {
for src; do
f="${src#fakeinstall/}"
dir="${pkgdir}/${f%/*}"
- install -m755 -d "${dir}"
- mv -v "${src}" "${dir}/"
+ if [ -f "${src}" ]; then
+ install -m755 -d "${dir}"
+ mv -v "${src}" "${dir}/"
+ fi
done
}
@@ -161,13 +163,13 @@ package_mesa() {
if [ "$CARCH" != "armv7h" ]; then
_install fakeinstall/usr/lib/libxatracker.so*
_install fakeinstall/usr/lib/libswrAVX*.so*
- fi
- # in libglvnd
- rm -v fakeinstall/usr/lib/libGLESv{1_CM,2}.so*
+ # in libglvnd
+ rm -v fakeinstall/usr/lib/libGLESv{1_CM,2}.so*
- # in vulkan-headers
- rm -rv fakeinstall/usr/include/vulkan
+ # in vulkan-headers
+ rm -rv fakeinstall/usr/include/vulkan
+ fi
if [ "$CARCH" != "i686" ]; then
# in wayland