diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-04-11 12:22:19 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-04-11 13:52:14 +0200 |
commit | b47a17bdc2d36bcd637baa8bf38742e38c79555f (patch) | |
tree | 298c076bc9e1dcaaa05e6b15a1ab5e45485884e0 /testing/shairport-sync | |
parent | c280e19e3045d953eab484084224b6500644ceb1 (diff) | |
download | aports-b47a17bdc2d36bcd637baa8bf38742e38c79555f.tar.bz2 aports-b47a17bdc2d36bcd637baa8bf38742e38c79555f.tar.xz |
testing/shairport-sync: fix and modernize abuild
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 } |