diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2015-03-31 14:22:33 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2015-03-31 14:22:54 +0000 |
commit | 7487bb01e709a1146f65b601201ab03fde4e5f3b (patch) | |
tree | 1441fed5b948f6d3dbeb95c93bb4da4bfadf5417 /testing/shairport-sync | |
parent | f33774c5bb9b7c72f0f8d7f669c85a62949384ff (diff) | |
download | aports-7487bb01e709a1146f65b601201ab03fde4e5f3b.tar.bz2 aports-7487bb01e709a1146f65b601201ab03fde4e5f3b.tar.xz |
shairport-sync: new aport
Diffstat (limited to 'testing/shairport-sync')
-rw-r--r-- | testing/shairport-sync/APKBUILD | 60 | ||||
-rw-r--r-- | testing/shairport-sync/donot-install-init.patch | 13 |
2 files changed, 73 insertions, 0 deletions
diff --git a/testing/shairport-sync/APKBUILD b/testing/shairport-sync/APKBUILD new file mode 100644 index 0000000000..12dea38e6b --- /dev/null +++ b/testing/shairport-sync/APKBUILD @@ -0,0 +1,60 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +pkgname=shairport-sync +pkgver=2.2.2 +pkgrel=0 +pkgdesc="AirTunes emulator. Shairport Sync adds multi-room capability with Audio Synchronisation" +url="https://github.com/mikebrady/shairport-sync" +arch="all" +license="custom" +depends="" +depends_dev="alsa-lib-dev libdaemon-dev popt-dev openssl-dev soxr-dev + avahi-dev" +makedepends="$depends_dev autoconf automake libtool" +install="" +subpackages="$pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://github.com/mikebrady/shairport-sync/archive/$pkgver.tar.gz + donot-install-init.patch" + +_builddir="$srcdir/$pkgname-$pkgver" +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + autoreconf -i -f + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + --with-alsa \ + --with-avahi \ + --with-ssl=openssl \ + --with-soxr \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +md5sums="6aef265bc1017d42ae646766cd223ca9 shairport-sync-2.2.2.tar.gz +ba6dd26a325cdcdf006cb5e5f47d0f82 donot-install-init.patch" +sha256sums="f306b2fe34018b8988cf8b4b7c4dd856e823e12b9250a80c809b7d62e30b3eec shairport-sync-2.2.2.tar.gz +a828bf92aa8454775f453a36881615406ddb90fa2ca08caf5380bf461fe099a0 donot-install-init.patch" +sha512sums="f6529d54741341b4d815b02c24df58b8bf4e51cfe83233aafedefad88963998a2ebaac12e2be9698bcd73d6f99c1487410126915e4bc27e46f62133ef23a05b7 shairport-sync-2.2.2.tar.gz +3fd1731668745b0118f6559d13ecc51418998b7e70b7e26587f987a01e03d175f3e37da68794c600e925d7b7d1cb7d66b3d230442a1f81e97a6d973f0ac8b392 donot-install-init.patch" diff --git a/testing/shairport-sync/donot-install-init.patch b/testing/shairport-sync/donot-install-init.patch new file mode 100644 index 0000000000..f25ec52e11 --- /dev/null +++ b/testing/shairport-sync/donot-install-init.patch @@ -0,0 +1,13 @@ +diff --git a/Makefile.am b/Makefile.am +index ce1f0ba..9b32c2c 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -35,7 +35,3 @@ endif + if USE_DNS_SD + shairport_sync_SOURCES += mdns_dns_sd.c + endif +- +-install-exec-hook: +- [ -f /etc/init.d/shairport-sync ] || cp scripts/shairport-sync /etc/init.d/ +- update-rc.d shairport-sync defaults 90 10 + |