Commit b47a17bd authored by Jakub Jirutka's avatar Jakub Jirutka

testing/shairport-sync: fix and modernize abuild

parent c280e19e
......@@ -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
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment