summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2017-10-23 14:01:41 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2017-10-23 14:01:41 +0800
commit61c04a52a1dee90808a93c8f99d94726dac0d7c8 (patch)
treed8e15ed32b256dc953d80c6b02372afadb0bf986
parent384ff4c7a19b8629adbe761863eed9a25e586ca9 (diff)
Pull from https://git.archlinux.org/svntogit/community.git/plain/gcc5/repos/community-x86_64/PKGBUILD?id=08bb8d7b5ecd5356494f8c35b3dfdee8f69dac71
-rw-r--r--PKGBUILD4
1 files changed, 2 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index c0e1988..f7740a9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -81,8 +81,8 @@ package() {
rm -rf ${pkgdir}/usr/share/{info,locale,man}
# Move potentially conflicting stuff to version specific subdirectory
- mv ${pkgdir}/usr/lib/lib* ${pkgdir}/usr/lib/gcc/${CHOST}/${pkgver}/
- mv ${pkgdir}/usr/lib/gcc/${CHOST}/lib/lib* ${pkgdir}/usr/lib/gcc/${CHOST}/${pkgver}/
+ [[ -d ${pkgdir}/usr/lib ]] && mv ${pkgdir}/usr/lib/lib* ${pkgdir}/usr/lib/gcc/${CHOST}/${pkgver}/
+ [[ -d ${pkgdir}/usr/lib/gcc/${CHOST}/lib/ ]] && mv ${pkgdir}/usr/lib/gcc/${CHOST}/lib/lib* ${pkgdir}/usr/lib/gcc/${CHOST}/${pkgver}/
# Install Runtime Library Exception
install -Dm644 ${srcdir}/${_basedir}/COPYING.RUNTIME \