git » aubio.git » commit 7335288

python 3.7 rebuild

author Eli Schwartz
2018-07-25 16:39:48 UTC
committer Eli Schwartz
2018-07-25 16:39:48 UTC
parent f8ca5f994e41ccb7b5024b5e5cc90b792970e183

python 3.7 rebuild

PKGBUILD +3 -7

diff --git a/PKGBUILD b/PKGBUILD
index f5233f5..2a75d11 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@
 pkgbase=aubio
 pkgname=('aubio' 'python-aubio' 'python2-aubio')
 pkgver=0.4.6
-pkgrel=6
+pkgrel=7
 pkgdesc="A tool for extracting annotations from audio signals"
 arch=('x86_64')
 url="https://aubio.org/"
@@ -50,12 +50,10 @@ build() {
 
 check() {
   cd "${pkgname[1]}-${pkgver}"
-  export PYTHONPATH="${srcdir}/${pkgname[1]}-${pkgver}/build/lib.linux-${arch}-3.6":${PYTHONPATH}
-  python setup.py test
+  PYTHONPATH="${PWD}/build/lib.linux-${CARCH}-3.7:${PYTHONPATH}" python setup.py test
 
   cd ../"${pkgname[2]}-${pkgver}"
-  export PYTHONPATH="${srcdir}/${pkgname[2]}-${pkgver}/build/lib.linux-${arch}-2.7":${PYTHONPATH}
-  python2 setup.py test
+  PYTHONPATH="${PWD}/build/lib.linux-${CARCH}-2.7:${PYTHONPATH}" python2 setup.py test
 }
 
 package_aubio() {
@@ -79,7 +77,6 @@ package_python-aubio() {
   cd "${pkgname}-${pkgver}"
   python setup.py install --skip-build \
     --optimize=1 \
-    --prefix=/usr \
     --root="${pkgdir}"
   install -t "${pkgdir}/usr/share/doc/${pkgname}/" \
     -vDm 644 {AUTHORS,ChangeLog,README.md}
@@ -91,7 +88,6 @@ package_python2-aubio() {
   cd "${pkgname}-${pkgver}"
   python2 setup.py install --skip-build \
     --optimize=1 \
-    --prefix=/usr \
     --root="${pkgdir}"
   install -t "${pkgdir}/usr/share/doc/${pkgname}/" \
     -vDm 644 {AUTHORS,ChangeLog,README.md}