summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFFY002018-07-02 01:18:07 +0100
committerFFY002018-07-02 01:18:07 +0100
commitd2a5f744b2f6d14526ada24ee7a280d9937f6454 (patch)
tree3ff56b3c7ec13958b585302e710d86b8f9b0111b
parentcab4499429b0e149571415b59290a7e7aa4f24fc (diff)
downloadaur-d2a5f744b2f6d14526ada24ee7a280d9937f6454.tar.gz
pkgbuild: add quotes to $pkgdir
-rw-r--r--PKGBUILD17
1 files changed, 8 insertions, 9 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 0d63e198ea2..86a65192115 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,4 @@
# Maintainer: FFY00 <filipe.lains@gmail.com>
-
pkgname=qt5-quick1-git
pkgver=5.8.0.fa02271a
pkgrel=1
@@ -16,12 +15,12 @@ sha1sums=('SKIP')
_prlfix() {
# Fix wrong path in prl files
- find "${pkgdir}/usr/lib" -type f -name '*.prl' \
+ find "$pkgdir"/usr/lib -type f -name '*.prl' \
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/' {} \;
}
pkgver() {
- cd "${srcdir}/qtquick1"
+ cd "$srcdir"/qtquick1
printf "%s.%s" "$(cat .qmake.conf | grep 'MODULE_VERSION = ' | sed 's/MODULE_VERSION = //')" "$(git rev-parse --short HEAD)"
}
@@ -47,16 +46,16 @@ build() {
package() {
cd qtquick1/build
- make INSTALL_ROOT=$pkgdir install
- make INSTALL_ROOT=$pkgdir install_docs
+ make INSTALL_ROOT="$pkgdir" install
+ make INSTALL_ROOT="$pkgdir" install_docs
_prlfix
# create some symlinks in /usr/bin, postfixed with -qt5
- install -d $pkgdir/usr/bin
- for i in $(ls $pkgdir/usr/bin); do
- ln -s /usr/bin/$i $pkgdir/usr/bin/$i-qt5
+ install -d "$pkgdir"/usr/bin
+ for i in $(ls "$pkgdir"/usr/bin); do
+ ln -s /usr/bin/$i "$pkgdir"/usr/bin/$i-qt5
done
- install -D -m644 ../LGPL_EXCEPTION.txt $pkgdir/usr/share/licenses/$pkgname/LGPL_EXCEPTION.txt
+ install -D -m644 ../LGPL_EXCEPTION.txt "$pkgdir"/usr/share/licenses/$pkgname/LGPL_EXCEPTION.txt
}