summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFFY002018-07-02 01:17:14 +0100
committerFFY002018-07-02 01:17:14 +0100
commite9488cd4afbe1eb2356a2ab32d85ba5f58f41049 (patch)
tree4a1bd0e9836f4641accf3ad1b901ea5d0f3161ec
parent21559398bb63c31e8881e2f06b9f4560e33d2376 (diff)
downloadaur-e9488cd4afbe1eb2356a2ab32d85ba5f58f41049.tar.gz
pkgbuild: add quotes to $pkgdir
-rw-r--r--PKGBUILD60
1 files changed, 30 insertions, 30 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 0eafd051e571..f76f59c921c6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -20,52 +20,52 @@ package_gdc-bin() {
provides=("d-compiler=$_dver" "gdc=$pkgver")
pkgdesc="Compiler for D programming language which uses gcc backend"
- install -d -m755 $pkgdir/usr/include/d
- cp -dr --no-preserve=ownership $srcdir/$_target/lib/gcc/$_target/$_gccver/include/d $pkgdir/usr/include
- install -D -m755 $srcdir/$_target/bin/gdc $pkgdir/usr/bin/gdc
- install -D -m755 $srcdir/$_target/libexec/gcc/$_target/$_gccver/cc1d $pkgdir/usr/bin/cc1d
- install -D -m755 $srcdir/$_target/bin/gdmd $pkgdir/usr/bin/gdmd
+ install -d -m755 "$pkgdir"/usr/include/d
+ cp -dr --no-preserve=ownership "$srcdir"/$_target/lib/gcc/$_target/$_gccver/include/d "$pkgdir"/usr/include
+ install -D -m755 "$srcdir"/$_target/bin/gdc "$pkgdir"/usr/bin/gdc
+ install -D -m755 "$srcdir"/$_target/libexec/gcc/$_target/$_gccver/cc1d "$pkgdir"/usr/bin/cc1d
+ install -D -m755 "$srcdir"/$_target/bin/gdmd "$pkgdir"/usr/bin/gdmd
}
package_gdc-gcc() {
pkgdesc="The GNU Compiler Collection - C and C++ frontends (from GDC, gdcproject.org)"
provides=("gcc=$_gccver" "gcc-libs=$_gccver")
- install -D -m755 $srcdir/$_target/bin/c++ $pkgdir/usr/bin/gdc-c++
- install -D -m755 $srcdir/$_target/bin/cc $pkgdir/usr/bin/gdc-cc
- install -D -m755 $srcdir/$_target/bin/cpp $pkgdir/usr/bin/gdc-cpp
- install -D -m755 $srcdir/$_target/bin/g++ $pkgdir/usr/bin/gdc-g++
- install -D -m755 $srcdir/$_target/bin/gcc $pkgdir/usr/bin/gdc-gcc
- install -D -m755 $srcdir/$_target/bin/gcov $pkgdir/usr/bin/gdc-gcov
- install -D -m755 $srcdir/$_target/bin/gcov-tool $pkgdir/usr/bin/gdc-gcov-toll
- install -d -m644 $pkgdir/usr/include/c++/$_gccver
- cp -dr --no-preserve=ownership $srcdir/$_target/include/c++/$_gccver $pkgdir/usr/include/c++
- install -d -m644 $pkgdir/usr/lib/gcc/$_target/$_gccver
- cp -dr --no-preserve=ownership $srcdir/$_target/lib/gcc/$_target/$_gccver $pkgdir/usr/lib/gcc/$_target/
- install -d -m644 $pkgdir/usr/libexec/gcc/$_target/$_gccver
- cp -dr --no-preserve=ownership $srcdir/$_target/libexec/gcc/$_target/$_gccver $pkgdir/usr/libexec/gcc/$_target/
+ install -D -m755 "$srcdir"/$_target/bin/c++ "$pkgdir"/usr/bin/gdc-c++
+ install -D -m755 "$srcdir"/$_target/bin/cc "$pkgdir"/usr/bin/gdc-cc
+ install -D -m755 "$srcdir"/$_target/bin/cpp "$pkgdir"/usr/bin/gdc-cpp
+ install -D -m755 "$srcdir"/$_target/bin/g++ "$pkgdir"/usr/bin/gdc-g++
+ install -D -m755 "$srcdir"/$_target/bin/gcc "$pkgdir"/usr/bin/gdc-gcc
+ install -D -m755 "$srcdir"/$_target/bin/gcov "$pkgdir"/usr/bin/gdc-gcov
+ install -D -m755 "$srcdir"/$_target/bin/gcov-tool "$pkgdir"/usr/bin/gdc-gcov-toll
+ install -d -m644 "$pkgdir"/usr/include/c++/$_gccver
+ cp -dr --no-preserve=ownership "$srcdir"/$_target/include/c++/$_gccver "$pkgdir"/usr/include/c++
+ install -d -m644 "$pkgdir"/usr/lib/gcc/$_target/$_gccver
+ cp -dr --no-preserve=ownership "$srcdir"/$_target/lib/gcc/$_target/$_gccver "$pkgdir"/usr/lib/gcc/$_target/
+ install -d -m644 "$pkgdir"/usr/libexec/gcc/$_target/$_gccver
+ cp -dr --no-preserve=ownership "$srcdir"/$_target/libexec/gcc/$_target/$_gccver "$pkgdir"/usr/libexec/gcc/$_target/
}
#package_libgphobos() {
# pkgdesc="Standard library for D programming language, GDC port"
# provides=("d-runtime" "d-stdlib")
#
-# install -D -m644 $srcdir/$_target/lib64/libgphobos.so $pkgdir/usr/lib/libgphobos.so
-# install -D -m644 $srcdir/$_target/lib64/libgphobos.so $pkgdir/usr/lib/libgphobos.so.68
-# install -D -m644 $srcdir/$_target/lib64/libgphobos.so $pkgdir/usr/lib/libgphobos.so.68.0.2
-# install -D -m644 $srcdir/$_target/lib64/libgphobos.so $pkgdir/usr/lib/libgphobos.spec
-# install -D -m644 $srcdir/$_target/lib64/libgphobos.so $pkgdir/usr/lib/libgphobos.a
-# install -D -m644 $srcdir/$_target/lib64/libgphobos.so $pkgdir/usr/lib/libgphobos.la
+# install -D -m644 "$srcdir"/$_target/lib64/libgphobos.so "$pkgdir"/usr/lib/libgphobos.so
+# install -D -m644 "$srcdir"/$_target/lib64/libgphobos.so "$pkgdir"/usr/lib/libgphobos.so.68
+# install -D -m644 "$srcdir"/$_target/lib64/libgphobos.so "$pkgdir"/usr/lib/libgphobos.so.68.0.2
+# install -D -m644 "$srcdir"/$_target/lib64/libgphobos.so "$pkgdir"/usr/lib/libgphobos.spec
+# install -D -m644 "$srcdir"/$_target/lib64/libgphobos.so "$pkgdir"/usr/lib/libgphobos.a
+# install -D -m644 "$srcdir"/$_target/lib64/libgphobos.so "$pkgdir"/usr/lib/libgphobos.la
#}
package_libgphobos-lib32() {
pkgdesc="Standard library for D programming language, GDC port"
provides=("d-runtime-lib32" "d-stdlib-lib32")
- install -D -m644 $srcdir/$_target/lib32/libgphobos.so $pkgdir/usr/lib32/libgphobos.so
- install -D -m644 $srcdir/$_target/lib32/libgphobos.so $pkgdir/usr/lib32/libgphobos.so.68
- install -D -m644 $srcdir/$_target/lib32/libgphobos.so $pkgdir/usr/lib32/libgphobos.so.68.0.2
- install -D -m644 $srcdir/$_target/lib32/libgphobos.so $pkgdir/usr/lib32/libgphobos.spec
- install -D -m644 $srcdir/$_target/lib32/libgphobos.so $pkgdir/usr/lib32/libgphobos.a
- install -D -m644 $srcdir/$_target/lib32/libgphobos.so $pkgdir/usr/lib32/libgphobos.la
+ install -D -m644 "$srcdir"/$_target/lib32/libgphobos.so "$pkgdir"/usr/lib32/libgphobos.so
+ install -D -m644 "$srcdir"/$_target/lib32/libgphobos.so "$pkgdir"/usr/lib32/libgphobos.so.68
+ install -D -m644 "$srcdir"/$_target/lib32/libgphobos.so "$pkgdir"/usr/lib32/libgphobos.so.68.0.2
+ install -D -m644 "$srcdir"/$_target/lib32/libgphobos.so "$pkgdir"/usr/lib32/libgphobos.spec
+ install -D -m644 "$srcdir"/$_target/lib32/libgphobos.so "$pkgdir"/usr/lib32/libgphobos.a
+ install -D -m644 "$srcdir"/$_target/lib32/libgphobos.so "$pkgdir"/usr/lib32/libgphobos.la
}