aboutsummaryrefslogtreecommitdiffstats
path: root/testing/snapcast/APKBUILD
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2017-04-05 15:07:35 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2017-04-05 15:07:35 +0200
commit01abcd4b4e2f1733bbfc8551cb6bf4f8d21a9a9d (patch)
tree772c32111e8852af946ead78e18c83fba9330097 /testing/snapcast/APKBUILD
parente45e63328de4e819989b0026057c866aee32cc50 (diff)
downloadaports-01abcd4b4e2f1733bbfc8551cb6bf4f8d21a9a9d.tar.gz
aports-01abcd4b4e2f1733bbfc8551cb6bf4f8d21a9a9d.tar.bz2
aports-01abcd4b4e2f1733bbfc8551cb6bf4f8d21a9a9d.tar.xz
testing/snapcast: new aport
Diffstat (limited to 'testing/snapcast/APKBUILD')
-rw-r--r--testing/snapcast/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/testing/snapcast/APKBUILD b/testing/snapcast/APKBUILD
new file mode 100644
index 0000000000..069b4914b1
--- /dev/null
+++ b/testing/snapcast/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=snapcast
+pkgver=0.11.1
+### NOTE: when bumping pkgver also update sha's below from gitsubmodules
+_jsonrpcpp_sha=115296b2232ba8776467d74602d392d03409ad7e
+_popl_sha=0dc38f8bc30bec1946f7e3dbc5a2d37ad1edb93e
+pkgrel=0
+pkgdesc="Synchronous multi-room audio player"
+url="https://github.com/badaix/snapcast"
+arch="all"
+license="GPL-3.0"
+depends=""
+makedepends="asio-dev bash avahi-dev flac-dev
+ libvorbis-dev alsa-lib-dev
+ "
+install=""
+subpackages="$pkgname-doc"
+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
+ "
+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
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" installclient installserver
+}
+
+sha512sums="100eb239505d6f2d39a5efd470ff1802aa9fecabb709ff5dec284cefe6b6f0ef0432508cc24e8e29ed9ec378f5aae6a30c9fd7599ded106232e3b1a5ec9307be snapcast-0.11.1.tar.gz
+2737653a2e06a20e419580669f53b9760fd0997593f0bb6f053c55d12e35564e3ecdf9bfff71397eb252468e4174f3eefbcd1543a28c46bfc0055bda0843ebe8 jsonrpcpp-115296b2232ba8776467d74602d392d03409ad7e.tar.gz
+d0cde4748036dec2457343b36e6c6aa47557f649503aa10b648a105b062144f5625f74597ff79da6125aa5fe4477357d664473593819116cf401b68cbff4641a popl.hpp"