summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorTed Alff2017-11-02 23:12:06 -0400
committerTed Alff2017-11-02 23:12:06 -0400
commit45aaae95c41b84cc797082a146b39e0d4ee164ec (patch)
tree4d3ceef6e7b6ed1374c28f980e20ea2b404aa1cc /PKGBUILD
parente96fa419b952c3810bf67aa326958f1cae2a31ac (diff)
downloadaur-45aaae95c41b84cc797082a146b39e0d4ee164ec.tar.gz
Quote srcdir, pkgdir
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD6
1 files changed, 3 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 42a5b53d17d..4a9bdcdfce5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,16 +17,16 @@ source=("${pkgname}::git+https://github.com/freevo/kaa-base#commit=${_commit}")
sha256sums=('SKIP')
pkgver() {
- cd ${srcdir}/${pkgname}
+ cd "${srcdir}/${pkgname}"
echo "$( grep -m1 VERSION setup.py | sed "s:.*'\([^']*\)'.*:\1:" )+$(( $( git rev-list --all | grep -B9999 `git rev-list --tags --max-count=1` | wc -l ) - 1))+$( git rev-list --all | head -1 | cut -c1-8 )"
}
package() {
- cd ${srcdir}/${pkgname}
+ cd "${srcdir}/${pkgname}"
# python2 fix
find . -name '*.py' -exec \
sed -i 's_#!.*/usr/bin/python_#!/usr/bin/python2_;s_#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' '{}' \;
- python2 setup.py install --prefix=${pkgdir}/usr --optimize=1
+ python2 setup.py install --prefix="${pkgdir}"/usr --optimize=1
}