author | David Runge
<dvzrv@archlinux.org> 2020-07-15 21:13:15 UTC |
committer | David Runge
<dvzrv@archlinux.org> 2020-07-15 21:13:15 UTC |
parent | 24a5848c6de545a668b36dbe49d00ed94cdc7ecd |
PKGBUILD | +13 | -11 |
diff --git a/PKGBUILD b/PKGBUILD index 39a2766..72860e2 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -5,20 +5,21 @@ pkgbase=aubio pkgname=('aubio' 'python-aubio') pkgver=0.4.9 -pkgrel=7 +pkgrel=8 pkgdesc="A tool for extracting annotations from audio signals" arch=('x86_64') url="https://aubio.org/" license=('GPL3') -makedepends=('doxygen' 'ffmpeg' 'fftw' 'jack' 'python-numpy' -'python-setuptools' 'python-sphinx' 'txt2man' 'waf') +makedepends=('doxygen' 'ffmpeg' 'fftw' 'jack' 'libsamplerate' 'libsndfile' +'python-numpy' 'python-setuptools' 'python-sphinx' 'txt2man' 'waf') checkdepends=('python-pytest') source=("https://${pkgbase}.org/pub/${pkgbase}-${pkgver}.tar.bz2") sha512sums=('0cb81bb4b15051db3f3f4d160d500af56fdfb237e0a74e3f366f53c2870030aa0a7cee8469a611a9694c36b8866d3d42ffb48241c999de08f3fee43e6d903130') +b2sums=('b849d92678ea8fb20e17921b1a61fdc85a84d4a528acfefa3278169ab5f7fe935217ec37dd9f931202f0f0a1fd3a9518372afbce34cc2dd3ca30c6b4e5d9a301') prepare() { - cd "${pkgname}-${pkgver}" - rm -rv waflib + cd "${pkgbase}-${pkgver}" + rm -rv waflib } build() { @@ -33,18 +34,18 @@ build() { check() { local _py3_ver=$(python3 -c "import sys; print(str(sys.version_info.major)+'.'+str(sys.version_info.minor))") - local PYTHON3_PATH="${srcdir}/${pkgbase}-${pkgver}/build/lib.linux-$CARCH-${_py3_ver}/:${PYTHONPATH}" cd "${pkgbase}-${pkgver}" - PYTHONPATH="${PYTHON3_PATH}" \ + PYTHONPATH="build/lib.linux-$CARCH-${_py3_ver}:${PYTHONPATH}" \ LD_LIBRARY_PATH="${PWD}/build/src" \ - py.test python/tests + PYTHONDONTWRITEBYTECODE=1 \ + pytest -v python/tests } package_aubio() { pkgdesc="A tool for extracting annotations from audio signals" depends=('fftw' 'glibc' 'libavcodec.so' 'libavformat.so' 'libavutil.so' - 'libswresample.so' 'libjack.so' 'libsamplerate' 'libsndfile') - optdepends=('python-aubio: Python 3.x interface') + 'libjack.so' 'libsamplerate.so' 'libsndfile.so' 'libswresample.so') + optdepends=('python-aubio: Python bindings') provides=('libaubio.so') groups=('pro-audio') cd "${pkgname}-${pkgver}" @@ -57,9 +58,10 @@ package_aubio() { } package_python-aubio() { - pkgdesc="Python 3.x bindings for aubio" + pkgdesc="Python bindings for aubio" depends=('glibc' 'libaubio.so' 'python-numpy' 'python-setuptools') cd "${pkgbase}-${pkgver}" + export PYTHONHASHSEED=0 python setup.py install --skip-build \ --optimize=1 \ --root="${pkgdir}"