diff options
author | eolianoe | 2018-06-26 22:47:42 +0200 |
---|---|---|
committer | eolianoe | 2018-06-26 22:47:42 +0200 |
commit | e28687da57c1d9c6179f1c7643e9dff68025b918 (patch) | |
tree | 95135f4f7145f6f2dcb6bb633a9b1f69dd1249b2 | |
parent | 0d8993efef08dc19d836c424e9a24efc006835b6 (diff) | |
download | aur-e28687da57c1d9c6179f1c7643e9dff68025b918.tar.gz |
add build function
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -27,11 +27,20 @@ prepare() { done } + +build() { + cd "${srcdir}/flup-${pkgver}" + python setup.py build + + cd "${srcdir}/flup-${pkgver}-py2" + python2 setup.py build +} + package_python-flup() { depends=('python') cd "$srcdir/flup-$pkgver" - python setup.py install --root="$pkgdir" + python setup.py install --root="$pkgdir" --optimize=1 --skip-build install -D -m644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } @@ -40,7 +49,7 @@ package_python2-flup() { depends=('python2') cd "$srcdir/flup-$pkgver-py2" - python2 setup.py install --root="$pkgdir" + python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build install -D -m644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |