Date: Thursday, April 13, 2023 @ 15:43:33
Author: dvzrv
Revision: 1445864
archrelease: copy trunk to community-staging-x86_64
Added:
audaspace/repos/community-staging-x86_64/PKGBUILD
(from rev 1445863, audaspace/trunk/PKGBUILD)
Deleted:
audaspace/repos/community-staging-x86_64/PKGBUILD
----------+
PKGBUILD | 100 ++++++++++++++++++++++++++++++++++++++-----------------------
1 file changed, 63 insertions(+), 37 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-04-13 15:43:19 UTC (rev 1445863)
+++ PKGBUILD 2023-04-13 15:43:33 UTC (rev 1445864)
@@ -1,37 +0,0 @@
-# Maintainer: Sven-Hendrik Haase <[email protected]>
-pkgname=audaspace
-pkgver=1.4.0
-pkgrel=1
-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')
-
-build() {
- cd "${pkgname}"
-
- mkdir build
- cd build
-
- cmake .. \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DWITH_PYTHON=1 \
- -DWITH_JACK=1 \
- -DDEFAULT_PLUGIN_PATH=/usr/share/audaspace/plugins
-
- make
-}
-
-package() {
- cd "${pkgname}"
-
- cd build
-
- make DESTDIR="${pkgdir}/" install
-}
Copied: audaspace/repos/community-staging-x86_64/PKGBUILD (from rev 1445863,
audaspace/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-04-13 15:43:33 UTC (rev 1445864)
@@ -0,0 +1,63 @@
+# Maintainer: Sven-Hendrik Haase <[email protected]>
+pkgname=audaspace
+pkgver=1.4.0
+pkgrel=2
+pkgdesc="A high level and feature rich audio library written in C++ with
language bindings"
+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() {
+ 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
+ )
+
+ cmake "${cmake_options[@]}"
+ cmake --build build --verbose
+
+ cd build
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ ctest --test-dir build --output-on-failure
+}
+
+package() {
+ DESTDIR="$pkgdir" cmake --install build
+ python -m installer --destdir="$pkgdir" build/dist/*.whl
+}