aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpsykose <alice@ayaya.dev>2022-10-14 15:09:00 +0000
committerpsykose <alice@ayaya.dev>2022-10-14 17:22:09 +0200
commit43d13d1782f36955f862f7cbb15a67a9d89e2a3b (patch)
tree82d0bc66d2374f0f2a4d95e6cd16bf8b48932c61
parent7294b508566935e6558d0967ed85bff2f0560435 (diff)
downloadaports-43d13d1782f36955f862f7cbb15a67a9d89e2a3b.tar.gz
aports-43d13d1782f36955f862f7cbb15a67a9d89e2a3b.tar.bz2
aports-43d13d1782f36955f862f7cbb15a67a9d89e2a3b.tar.xz
community/soxr: build with samurai
-rw-r--r--community/soxr/APKBUILD44
1 files changed, 18 insertions, 26 deletions
diff --git a/community/soxr/APKBUILD b/community/soxr/APKBUILD
index 42e43cffe3..831eb1d90d 100644
--- a/community/soxr/APKBUILD
+++ b/community/soxr/APKBUILD
@@ -2,57 +2,49 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=soxr
pkgver=0.1.3
-pkgrel=2
+pkgrel=3
pkgdesc="High quality, one-dimensional sample-rate conversion library"
url="https://sourceforge.net/projects/soxr"
arch="all"
license="LGPL-2.1-or-later"
depends_dev="cmake"
-makedepends="$depends_dev"
+makedepends="$depends_dev samurai"
subpackages="$pkgname-doc $pkgname-static $pkgname-dev"
source="$pkgname-$pkgver.tar.xz::https://sourceforge.net/projects/soxr/files/soxr-$pkgver-Source.tar.xz/download"
builddir="$srcdir/$pkgname-$pkgver-Source"
build() {
- mkdir -p "$builddir"/static "$builddir"/shared
-
- # We can't build the static and shared libs in one go, so build them one by one...
- cd "$builddir"/static
- cmake \
+ cmake -B build-static -G Ninja \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DBUILD_SHARED_LIBS=False \
-DBUILD_TESTS=ON \
- -DCMAKE_BUILD_TYPE=None \
- ..
- make
+ -DCMAKE_BUILD_TYPE=None
+ cmake --build build-static
- cd "$builddir"/shared
- cmake \
+ cmake -B build-shared -G Ninja \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DBUILD_SHARED_LIBS=True \
-DBUILD_TESTS=ON \
- -DCMAKE_BUILD_TYPE=None \
- ..
- make
+ -DCMAKE_BUILD_TYPE=None
+ cmake --build build-shared
}
check() {
- cd "$builddir"/static
- make test
- cd "$builddir"/shared
- make test
+ cd "$builddir"/build-static
+ ninja test
+ cd "$builddir"/build-shared
+ ninja test
}
package() {
- cd "$builddir"/static
- make DESTDIR="$pkgdir" install
- cd "$builddir"/shared
- make DESTDIR="$pkgdir" install
+ DESTDIR="$pkgdir" cmake --install build-static
+ DESTDIR="$pkgdir" cmake --install build-shared
}
doc() {
- mkdir -p "$subpkgdir/usr"
- mv "$pkgdir/usr/share" "$subpkgdir/usr/share"
+ amove usr/share
}
-sha512sums="f4883ed298d5650399283238aac3dbe78d605b988246bea51fa343d4a8ce5ce97c6e143f6c3f50a3ff81795d9c19e7a07217c586d4020f6ced102aceac46aaa8 soxr-0.1.3.tar.xz"
+sha512sums="
+f4883ed298d5650399283238aac3dbe78d605b988246bea51fa343d4a8ce5ce97c6e143f6c3f50a3ff81795d9c19e7a07217c586d4020f6ced102aceac46aaa8 soxr-0.1.3.tar.xz
+"