aboutsummaryrefslogtreecommitdiffstats
path: root/community/snapcast
diff options
context:
space:
mode:
Diffstat (limited to 'community/snapcast')
-rw-r--r--community/snapcast/APKBUILD20
1 files changed, 7 insertions, 13 deletions
diff --git a/community/snapcast/APKBUILD b/community/snapcast/APKBUILD
index a8d0657938..e8d320e3e5 100644
--- a/community/snapcast/APKBUILD
+++ b/community/snapcast/APKBUILD
@@ -19,7 +19,8 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/badaix/snapcast/archive/v$pk
$pkgname-server.initd
$pkgname-server.confd
"
-options="!check" # No testsuite
+
+[ "$CARCH" = "riscv64" ] && options="$options textrels"
build() {
cmake -B build \
@@ -29,26 +30,22 @@ build() {
-DBUILD_WITH_VORBIS=ON \
-DBUILD_WITH_OPUS=ON \
-DBUILD_WITH_AVAHI=ON
- make -C build
+ cmake --build build
}
check() {
- cd build
- CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+ bin/snapcast_test
}
package() {
- DESTDIR="$pkgdir" make -C build install
+ DESTDIR="$pkgdir" cmake --install build
}
client() {
pkgdesc="$pkgname client"
depends=
- mkdir -p "$subpkgdir"/usr/bin
-
- mv "$pkgdir"/usr/bin/snapclient \
- "$subpkgdir"/usr/bin/
+ amove usr/bin/snapclient
install -Dm755 "$srcdir/$subpkgname.initd" \
"$subpkgdir"/etc/init.d/"$subpkgname"
install -Dm644 "$srcdir/$subpkgname.confd" \
@@ -59,10 +56,7 @@ server() {
pkgdesc="$pkgname server"
depends=
- mkdir -p "$subpkgdir"/usr/bin
-
- mv "$pkgdir"/usr/bin/snapserver \
- "$subpkgdir"/usr/bin/
+ amove usr/bin/snapserver
install -Dm755 "$srcdir/$subpkgname.initd" \
"$subpkgdir"/etc/init.d/"$subpkgname"
install -Dm644 "$srcdir/$subpkgname.confd" \