diff options
Diffstat (limited to 'testing/shairport-sync')
-rw-r--r-- | testing/shairport-sync/APKBUILD | 37 |
1 files changed, 15 insertions, 22 deletions
diff --git a/testing/shairport-sync/APKBUILD b/testing/shairport-sync/APKBUILD index dfc491879e..871f6fc007 100644 --- a/testing/shairport-sync/APKBUILD +++ b/testing/shairport-sync/APKBUILD @@ -7,30 +7,23 @@ pkgdesc="AirTunes emulator. Shairport Sync adds multi-room capability with Audio url="https://github.com/mikebrady/shairport-sync" arch="all" license="custom" -depends="" -depends_dev="alsa-lib-dev libdaemon-dev popt-dev libressl-dev soxr-dev - avahi-dev libconfig-dev" -makedepends="$depends_dev autoconf automake libtool" -install="" +depends="avahi" +makedepends="autoconf automake libtool alsa-lib-dev libdaemon-dev popt-dev + libressl-dev soxr-dev avahi-dev libconfig-dev" subpackages="$pkgname-doc" -source="$pkgname-$pkgver.tar.gz::https://github.com/mikebrady/shairport-sync/archive/$pkgver.tar.gz +source="$pkgname-$pkgver.tar.gz::https://github.com/mikebrady/$pkgname/archive/$pkgver.tar.gz $pkgname.initd" +builddir="$srcdir/$pkgname-$pkgver" -_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 + default_prepare + autoreconf -i -f } build() { - cd "$_builddir" - autoreconf -i -f - ./configure \ + cd "$builddir" + + ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ @@ -41,14 +34,14 @@ build() { --with-alsa \ --with-avahi \ --with-ssl=openssl \ - --with-soxr \ - || return 1 - make || return 1 + --with-soxr + make } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + + make DESTDIR="$pkgdir" install install -m 755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname } |