summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard PALO2018-11-19 23:46:34 +0100
committerRichard PALO2018-11-19 23:46:34 +0100
commitfb98d818ef2972012528dddf99eac7920622de30 (patch)
tree9b3f7c8ef21ffefc36fd8c92fe17d87e42af032c
parentbcd793b8a9a75b575f66979ffe797dc7c30bfdb4 (diff)
downloadaur-fb98d818ef2972012528dddf99eac7920622de30.tar.gz
Fix build() and avoid 2to3 issues
-rw-r--r--PKGBUILD16
1 files changed, 9 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index e5885f7cfef..45376364d81 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,9 +12,16 @@ makedepends=('python-setuptools' 'python2-setuptools')
source=("https://pypi.io/packages/source/r/relatorio/relatorio-$pkgver.tar.gz")
sha512sums=('29b931b3de768375b9e736e4f2254faaf8757b1428efb8f3f1fcfca13a12649bbd07f56c000873c3544f203bf6c8e5bdd1e8851c24705cc504e853fa962fa721')
-build_python-relatorio() {
+prepare() {
+ cp -a relatorio-$pkgver{,-py2}
+}
+
+build() {
cd $srcdir/relatorio-$pkgver
python setup.py build
+
+ cd $srcdir/relatorio-$pkgver-py2
+ python2 setup.py build
}
package_python-relatorio() {
@@ -25,15 +32,10 @@ package_python-relatorio() {
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}
-build_python2-relatorio() {
- cd $srcdir/relatorio-$pkgver
- python2 setup.py build
-}
-
package_python2-relatorio() {
depends=('python2-genshi>=0.5' 'python2-lxml>=2.0')
optdepends=('python2-pycha>=0.4.0: chart support' 'python2-yaml' 'python2-magic: fodt support')
- cd $srcdir/relatorio-$pkgver
+ cd $srcdir/relatorio-$pkgver-py2
python2 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}