summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDoug Newgard2019-08-30 08:54:14 -0500
committerDoug Newgard2019-08-30 08:54:14 -0500
commitb5aa18a2cdfec983576fd9171638b755b3989bcc (patch)
treeed6a52e0f48d6f2cbda9ffad9edae8cbf5ed17ac /PKGBUILD
parent08017b29cafb7e12dc77151916f0a641e510b2c3 (diff)
downloadaur-python2-gdal.tar.gz
Simplify
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD4
1 files changed, 1 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 3844c3c9213..d725af1bc3e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -19,9 +19,7 @@ build() {
package() {
cd gdal-$pkgver/swig/python
python2 setup.py install --root="$pkgdir" --optimize=1
-
- cd "$pkgdir/usr/bin/"
- for bin in *.py; do mv $bin ${bin%.py}2.py; done
+ for bin in "$pkgdir/usr/bin/"*.py; do mv "$bin" "${bin%.py}2.py"; done
install -dm755 "$pkgdir/usr/share/licenses"
ln -s gdal "$pkgdir/usr/share/licenses/$pkgname"