aboutsummaryrefslogtreecommitdiffstats
path: root/testing/snapcast/APKBUILD
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@alpinelinux.org>2018-03-07 01:04:51 +0000
committerCarlo Landmeter <clandmeter@alpinelinux.org>2018-03-07 01:04:56 +0000
commit8d88676dba3a59296d186c2fb62a8b920aa89975 (patch)
tree774c7ae564f50fa2b5dd67237e0e779bed701995 /testing/snapcast/APKBUILD
parent94b66949fdca3ae6db7a5e170db0ea17122f683e (diff)
downloadaports-8d88676dba3a59296d186c2fb62a8b920aa89975.tar.gz
aports-8d88676dba3a59296d186c2fb62a8b920aa89975.tar.bz2
aports-8d88676dba3a59296d186c2fb62a8b920aa89975.tar.xz
testing/snapcast: upgrade to 0.13.0 and some fixes
Diffstat (limited to 'testing/snapcast/APKBUILD')
-rw-r--r--testing/snapcast/APKBUILD50
1 files changed, 22 insertions, 28 deletions
diff --git a/testing/snapcast/APKBUILD b/testing/snapcast/APKBUILD
index 2bd67e81ef..ea078e31c0 100644
--- a/testing/snapcast/APKBUILD
+++ b/testing/snapcast/APKBUILD
@@ -1,26 +1,21 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Marvin Steadfast <marvin@xsteadfastx.org>
pkgname=snapcast
-pkgver=0.11.1
-### NOTE: when bumping pkgver also update sha's below from gitsubmodules
-_jsonrpcpp_sha=115296b2232ba8776467d74602d392d03409ad7e
-_popl_sha=0dc38f8bc30bec1946f7e3dbc5a2d37ad1edb93e
-pkgrel=4
+pkgver=0.13.0
+pkgrel=0
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
+ libvorbis-dev alsa-lib-dev aixlog popl
"
pkgusers="$pkgname"
pkggroups="$pkgname audio"
install="$pkgname-client.pre-install $pkgname-server.pre-install"
subpackages="$pkgname-doc $pkgname-client $pkgname-server"
source="snapcast-$pkgver.tar.gz::https://github.com/badaix/snapcast/archive/v$pkgver.tar.gz
- jsonrpcpp-$_jsonrpcpp_sha.tar.gz::https://github.com/badaix/jsonrpcpp/archive/$_jsonrpcpp_sha.tar.gz
- https://raw.githubusercontent.com/badaix/popl/$_popl_sha/include/popl.hpp
$pkgname-client.initd
$pkgname-client.confd
$pkgname-server.initd
@@ -28,15 +23,6 @@ source="snapcast-$pkgver.tar.gz::https://github.com/badaix/snapcast/archive/v$pk
"
builddir="$srcdir/snapcast-$pkgver"
-prepare() {
- rmdir "$builddir"/externals/jsonrpcpp
- mv "$srcdir"/jsonrpcpp-"$_jsonrpcpp_sha" \
- "$builddir"/externals/jsonrpcpp
- install -D "$srcdir"/popl.hpp \
- $builddir/externals/popl/include/popl.hpp
- default_prepare
-}
-
build() {
cd "$builddir"
make
@@ -48,17 +34,27 @@ package() {
}
client() {
- depends=
- install -Dm755 "$pkgdir"/usr/bin/snapclient "$subpkgdir"/usr/bin/snapclient
- install -Dm755 "$srcdir"/"$subpkgname.initd" "$subpkgdir"/etc/init.d/"$subpkgname"
- install -Dm644 "$srcdir"/"$subpkgname.confd" "$subpkgdir"/etc/conf.d/"$subpkgname"
+ pkgdesc="$pkgname client"
+ install_if="$pkgname-$pkgver-r$pkgrel"
+ mkdir -p "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/snapclient \
+ "$subpkgdir"/usr/bin/
+ install -Dm755 "$srcdir"/"$subpkgname.initd" \
+ "$subpkgdir"/etc/init.d/"$subpkgname"
+ install -Dm644 "$srcdir"/"$subpkgname.confd" \
+ "$subpkgdir"/etc/conf.d/"$subpkgname"
}
server() {
- depends=
- install -Dm755 "$pkgdir"/usr/bin/snapserver "$subpkgdir"/usr/bin/snapserver
- install -Dm755 "$srcdir"/"$subpkgname.initd" "$subpkgdir"/etc/init.d/"$subpkgname"
- install -Dm644 "$srcdir"/"$subpkgname.confd" "$subpkgdir"/etc/conf.d/"$subpkgname"
+ pkgdesc="$pkgname server"
+ install_if="$pkgname-$pkgver-r$pkgrel"
+ mkdir -p "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/snapserver \
+ "$subpkgdir"/usr/bin/
+ install -Dm755 "$srcdir"/"$subpkgname.initd" \
+ "$subpkgdir"/etc/init.d/"$subpkgname"
+ install -Dm644 "$srcdir"/"$subpkgname.confd" \
+ "$subpkgdir"/etc/conf.d/"$subpkgname"
}
check() {
@@ -67,9 +63,7 @@ check() {
server/snapserver --help > /dev/null
}
-sha512sums="100eb239505d6f2d39a5efd470ff1802aa9fecabb709ff5dec284cefe6b6f0ef0432508cc24e8e29ed9ec378f5aae6a30c9fd7599ded106232e3b1a5ec9307be snapcast-0.11.1.tar.gz
-2737653a2e06a20e419580669f53b9760fd0997593f0bb6f053c55d12e35564e3ecdf9bfff71397eb252468e4174f3eefbcd1543a28c46bfc0055bda0843ebe8 jsonrpcpp-115296b2232ba8776467d74602d392d03409ad7e.tar.gz
-d0cde4748036dec2457343b36e6c6aa47557f649503aa10b648a105b062144f5625f74597ff79da6125aa5fe4477357d664473593819116cf401b68cbff4641a popl.hpp
+sha512sums="4a7afe00b8060189e650c69a75eef9da4c93ace25e4ba72fec17a3cb560f3dd1c130d15c9ed668fa03fa754f5586b5724787e9a41a102e8bed9bc1cc3aa0802c snapcast-0.13.0.tar.gz
d1c4d8693b708981703b13c496226c12800d3808b9362959839c85732b56171708d75dac708acf98548f110d22dcd3c1a046dbf39a5f6454bfd8978d7bca354e snapcast-client.initd
fa353d7974d3a8b3b22ff009b762c7c4ee318f9f83e22762a9ebf550484b9fc3cc4dffd389b6d756630dc035cb86d5c5643541957785f8bbf71fe4915691c337 snapcast-client.confd
0f6c43e267646ff657bfe184481c7148d3395a6ed2b9c485856b56370dcb5a1d2364f856af683d9af13fc12b8687ba890345673311caabefa09c9471e7b5cf48 snapcast-server.initd