summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2018-06-05 10:10:15 -0400
committerDavid P <megver83@parabola.nu>2018-06-05 10:10:24 -0400
commitb1ba1f1fabdbb1fe2fef1fa2f67aebee4279f2a2 (patch)
treee5c6f2c144dee213cda21227a40956aa1ed84529 /libre
parente79e1938c3c80fa205bbb7e065840d4eb2f6e53c (diff)
downloadabslibre-b1ba1f1fabdbb1fe2fef1fa2f67aebee4279f2a2.tar.gz
abslibre-b1ba1f1fabdbb1fe2fef1fa2f67aebee4279f2a2.tar.bz2
abslibre-b1ba1f1fabdbb1fe2fef1fa2f67aebee4279f2a2.zip
mesa: update _install()
So that it installs the files when they exist Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'libre')
-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