mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 20:06:43 +02:00
testing/shairport-sync: fix and modernize abuild
This commit is contained in:
parent
c280e19e30
commit
b47a17bdc2
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user