Date: Thursday, April 13, 2023 @ 15:43:19 Author: dvzrv Revision: 1445863
upgpkg: audaspace 1.4.0-2: Rebuild against Python 3.11. Add all direct dependencies. Switch to PEP517. Apply cmake packaging guidelines. Remove tab poisoning. Set TLS url. Switch to release tarball and checksums (no need for git). Move plugins below /usr/lib as below /usr/share is against FHS. Modified: audaspace/trunk/PKGBUILD ----------+ PKGBUILD | 74 +++++++++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 50 insertions(+), 24 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-04-13 15:30:51 UTC (rev 1445862) +++ PKGBUILD 2023-04-13 15:43:19 UTC (rev 1445863) @@ -1,37 +1,63 @@ # Maintainer: Sven-Hendrik Haase <[email protected]> pkgname=audaspace pkgver=1.4.0 -pkgrel=1 +pkgrel=2 pkgdesc="A high level and feature rich audio library written in C++ with language bindings" -arch=("x86_64") -url="http://audaspace.github.io/" -license=('APACHE') -depends=('ffmpeg' 'openal' 'sdl2' 'libsndfile' 'jack' 'fftw') -makedepends=('cmake' 'python' 'python-setuptools' 'python-numpy' 'git') -optdepends=('python: python language bindings' - 'python-numpy: python language bindings') -source=("git+https://github.com/neXyon/audaspace.git#commit=0d61f9ec84e74cd35bfc54e954d64392c9729e18") -md5sums=('SKIP') +arch=(x86_64) +url="https://audaspace.github.io/" +license=(Apache) +depends=( + 'ffmpeg' + 'fftw' + 'gcc-libs' + 'glibc' + 'jack' + 'libpulse' + 'libsndfile' + 'openal' + 'sdl2' +) +makedepends=( + 'cmake' + 'python' + 'python-build' + 'python-installer' + 'python-setuptools' + 'python-wheel' + 'python-numpy' +) +optdepends=( + 'python: python language bindings' + 'python-numpy: python language bindings' +) +source=("https://github.com/neXyon/audaspace/archive/v$pkgver/$pkgname-v$pkgver.tar.gz") +sha512sums=('a977356cc72f5b024d3819542326f85280c24bf16a9bee830e9818113345e5c3e3793e9b113b983b460161f3b827a3b110f40ae781082eacc72b7a5882c80d99') +b2sums=('1ccca9f19cd8491650cc20b1dc4f57ced2fbca13d97855303edaafa4ec6aa70aef4fedfd8bb738045d38270c2e62fd2714cccc50bce241b1d367bd7ce800e330') build() { - cd "${pkgname}" + local cmake_options=( + -B build + -D CMAKE_BUILD_TYPE=None + -D CMAKE_INSTALL_PREFIX=/usr + -D DEFAULT_PLUGIN_PATH=/usr/lib/$pkgname/plugins + -D WITH_JACK=ON + -D WITH_PYTHON=ON + -S $pkgname-$pkgver + -W no-dev + ) - mkdir build - cd build + cmake "${cmake_options[@]}" + cmake --build build --verbose - cmake .. \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DWITH_PYTHON=1 \ - -DWITH_JACK=1 \ - -DDEFAULT_PLUGIN_PATH=/usr/share/audaspace/plugins + cd build + python -m build --wheel --no-isolation +} - make +check() { + ctest --test-dir build --output-on-failure } package() { - cd "${pkgname}" - - cd build - - make DESTDIR="${pkgdir}/" install + DESTDIR="$pkgdir" cmake --install build + python -m installer --destdir="$pkgdir" build/dist/*.whl }
