Date: Monday, February 12, 2018 @ 00:13:02 Author: dvzrv Revision: 292589
upgpkg: aubio 0.4.6-2 Adding check() using python{,2}-nose2. Modified: aubio/trunk/PKGBUILD ----------+ PKGBUILD | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-02-12 00:08:44 UTC (rev 292588) +++ PKGBUILD 2018-02-12 00:13:02 UTC (rev 292589) @@ -6,7 +6,7 @@ pkgbase=aubio pkgname=('aubio' 'python-aubio' 'python2-aubio') pkgver=0.4.6 -pkgrel=1 +pkgrel=2 pkgdesc="A tool for extracting annotations from audio signals" arch=('x86_64') url="https://aubio.org/" @@ -14,6 +14,7 @@ makedepends=('doxygen' 'ffmpeg' 'fftw' 'jack' 'libsamplerate' 'libsndfile' 'python-numpy' 'python-setuptools' 'python-sphinx' 'python2-numpy' 'python2-setuptools' 'python2-sphinx' 'txt2man') +checkdepends=('python-nose2' 'python2-nose2') source=("https://${pkgname}.org/pub/${pkgname}-${pkgver}.tar.bz2") sha512sums=('0e5cab0c88d51f2fb70c0d85e1c067a7b3758fbffdbd5026686726379aa36203adb63ed3f8e40c83ea02930e0ffc4e6c246803f1d518d448d47a01984678e77d') @@ -39,6 +40,16 @@ python2 setup.py build } +check() { + cd "${pkgname[1]}-${pkgver}" + export PYTHONPATH="${srcdir}/${pkgname[1]}-${pkgver}/build/lib.linux-${arch}-3.6":${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 +} + package_aubio() { depends=('ffmpeg' 'fftw' 'jack' 'libsamplerate' 'libsndfile') optdepends=('python2-numpy: Python 2.x interface'