summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD6
1 files changed, 5 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 54989862829..3e14aa10ed1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,9 +15,13 @@ source=("https://pypi.python.org/packages/source/s/slowaes/slowaes-$pkgver.tar.g
md5sums=('eafee95a788a795403e972a35e80ce4f')
sha256sums=('83658ae54cc116b96f7fdb12fdd0efac3a4e8c7c7064e3fac3f4a881aa54bf09')
-package() {
+prepare() {
cd "$srcdir/slowaes-$pkgver"
sed -i 's#/usr/bin/python#/usr/bin/python2#' aes.py
+}
+
+package() {
+ cd "$srcdir/slowaes-$pkgver"
python2 setup.py install --root="$pkgdir/" --optimize=1
}