summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorhaawda2018-10-10 21:55:41 +0200
committerhaawda2018-10-10 21:55:41 +0200
commit79857b83bbd1243e709ab41577deb4cc7e8a6bcf (patch)
tree78f79e87cf7b8c77c50b566d1cf5f2c4acf8c9a7
parent01362a19736b9e734fcca8ddca740e1fef66179b (diff)
downloadaur-79857b83bbd1243e709ab41577deb4cc7e8a6bcf.tar.gz
add some quoting
-rw-r--r--PKGBUILD9
1 files changed, 4 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 0234eaadb34..0f728ffcd10 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,20 +13,19 @@ provides=('gnomesword' 'xiphos')
conflicts=('gnomesword' 'xiphos')
source=(git+https://github.com/crosswire/xiphos.git)
md5sums=('SKIP')
-_gitname=xiphos
pkgver() {
- cd "$_gitname"
+ cd ${pkgname%-git}
printf "r%s" $(git rev-list --count HEAD)
}
build() {
- cd "$_gitname"
+ cd ${pkgname%-git}
CXX=g++ python2 ./waf --prefix=/usr --enable-webkit2 configure
python2 ./waf --prefix=/usr --enable-webkit2 build
}
package() {
- cd "$_gitname"
- python2 ./waf --destdir=$pkgdir --no-post-install install
+ cd ${pkgname%-git}
+ python2 ./waf --destdir="$pkgdir" --no-post-install install
}