[arch-commits] Commit in aubio/trunk (PKGBUILD)

David Runge dvzrv at archlinux.org
Wed Jul 15 21:13:16 UTC 2020


    Date: Wednesday, July 15, 2020 @ 21:13:15
  Author: dvzrv
Revision: 664009

upgpkg: aubio 0.4.9-8: Rebuilding for reproducibility.

Exporting PYTHONHASHSEED so .pyc files stay reproducible.
Using PYTHONDONTWRITEBYTECODE=1 in check() so that the sources are not altered.

Modified:
  aubio/trunk/PKGBUILD

----------+
 PKGBUILD |   24 +++++++++++++-----------
 1 file changed, 13 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-15 21:05:33 UTC (rev 664008)
+++ PKGBUILD	2020-07-15 21:13:15 UTC (rev 664009)
@@ -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 @@
 
 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_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}"



More information about the arch-commits mailing list