53 lines
1.3 KiB
Plaintext
53 lines
1.3 KiB
Plaintext
|
# Maintainer: hoellen <dev@hoellen.eu>
|
||
|
pkgname=shairport-sync
|
||
|
pkgver=4.1
|
||
|
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="avahi"
|
||
|
makedepends="autoconf automake build-base libtool alsa-lib-dev popt-dev
|
||
|
openssl-dev soxr-dev avahi-dev libconfig-dev libplist-dev libsodium-dev
|
||
|
libgcrypt-dev ffmpeg-dev xxd xmltoman git"
|
||
|
subpackages="$pkgname-doc $pkgname-openrc"
|
||
|
source="$pkgname.initd"
|
||
|
options=!check
|
||
|
|
||
|
builddir="$srcdir/$pkgname"
|
||
|
|
||
|
prepare() {
|
||
|
git clone $url $builddir
|
||
|
cd $builddir
|
||
|
git checkout development
|
||
|
default_prepare
|
||
|
autoreconf -i -f
|
||
|
}
|
||
|
|
||
|
build() {
|
||
|
./configure \
|
||
|
--build=$CBUILD \
|
||
|
--host=$CHOST \
|
||
|
--prefix=/usr \
|
||
|
--sysconfdir=/etc \
|
||
|
--mandir=/usr/share/man \
|
||
|
--infodir=/usr/share/info \
|
||
|
--localstatedir=/var \
|
||
|
--with-piddir=/run \
|
||
|
--with-alsa \
|
||
|
--with-avahi \
|
||
|
--with-ssl=openssl \
|
||
|
--with-soxr \
|
||
|
--with-airplay-2
|
||
|
make
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd $builddir
|
||
|
make DESTDIR="$pkgdir" install
|
||
|
install -m 755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
|
||
|
}
|
||
|
|
||
|
|
||
|
sha512sums="a8ef971363561ed8cfbebcfc2adff1c429fa2d0e436dacd50d01872d645d4c055826614687068e7f1fc77139727027d2e2a5f5999c486657f6fd3bf4da85d01d shairport-sync.initd"
|