summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authordacoit2015-08-09 00:30:02 -0500
committerdacoit2015-08-09 00:30:02 -0500
commit2c53a0fedb7cbabb2aa34498b446af9f94174eb6 (patch)
tree7cabf317bb4659fdc03431594923ceaf667bf1dc /PKGBUILD
parent2230b75cdb680ce9ea1e0429dbf7fabfa56e695e (diff)
downloadaur-2c53a0fedb7cbabb2aa34498b446af9f94174eb6.tar.gz
/usr/bin/env python sed expression in prepare()
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD5
1 files changed, 4 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 828daef56c0..ea41a2f20b8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,7 +16,10 @@ conflicts=('woof-python3')
source=("http://www.home.unix-ag.org/simon/$pkgname")
md5sums=('89081e64362421dcb683a19c10a15e59')
+prepare() {
+ sed -i 's|^#!/usr/bin/env python$|#!/usr/bin/env python2|' "$pkgname"
+}
+
package() {
- sed -i -e 's,^#!/usr/bin/env python$,#!/usr/bin/env python2,' "$pkgname"
install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
}