aboutsummaryrefslogtreecommitdiffstats
path: root/community/snapcast/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-01-09 16:07:09 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-01-09 16:07:09 +0000
commit85371dbfb3c73eb2cb16029469d8de09e7c2427b (patch)
tree8d154b091859b51c14d6886970a25dc24d6649bd /community/snapcast/APKBUILD
parentf42e3094bf6f383375dd0f12295fcac48c0cd734 (diff)
downloadaports-85371dbfb3c73eb2cb16029469d8de09e7c2427b.tar.gz
aports-85371dbfb3c73eb2cb16029469d8de09e7c2427b.tar.bz2
aports-85371dbfb3c73eb2cb16029469d8de09e7c2427b.tar.xz
community/snapcast: clean up depends
use depends instead of install_is since there only was a single condition for install_if. Fix the unintended circular depends of snapcast-client -> snapcast-server -> snapcast-client by reset depends in subpkg function.
Diffstat (limited to 'community/snapcast/APKBUILD')
-rw-r--r--community/snapcast/APKBUILD15
1 files changed, 8 insertions, 7 deletions
diff --git a/community/snapcast/APKBUILD b/community/snapcast/APKBUILD
index a6e0b5afc7..babcf72142 100644
--- a/community/snapcast/APKBUILD
+++ b/community/snapcast/APKBUILD
@@ -2,11 +2,12 @@
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=snapcast
pkgver=0.15.0
-pkgrel=2
+pkgrel=3
pkgdesc="Synchronous multi-room audio player"
url="https://github.com/badaix/snapcast"
arch="all"
license="GPL-3.0"
+depends="$pkgname-client $pkgname-server"
makedepends="asio-dev bash avahi-dev flac-dev libvorbis-dev alsa-lib-dev aixlog popl"
pkgusers="$pkgname"
pkggroups="$pkgname audio"
@@ -40,10 +41,10 @@ package() {
client() {
pkgdesc="$pkgname client"
- install_if="$pkgname-$pkgver-r$pkgrel"
-
+ depends=
+
mkdir -p "$subpkgdir"/usr/bin
-
+
mv "$pkgdir"/usr/bin/snapclient \
"$subpkgdir"/usr/bin/
install -Dm755 "$srcdir"/"$subpkgname.initd" \
@@ -54,10 +55,10 @@ client() {
server() {
pkgdesc="$pkgname server"
- install_if="$pkgname-$pkgver-r$pkgrel"
-
+ depends=
+
mkdir -p "$subpkgdir"/usr/bin
-
+
mv "$pkgdir"/usr/bin/snapserver \
"$subpkgdir"/usr/bin/
install -Dm755 "$srcdir"/"$subpkgname.initd" \