Add initial APKBUILD for shairport-sync and nqptp

This commit is contained in:
2021-12-16 13:42:50 +00:00
parent 835abdc133
commit f534bdfeb8
4 changed files with 112 additions and 0 deletions

52
shairport-sync/APKBUILD Normal file
View File

@ -0,0 +1,52 @@
# 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"

View File

@ -0,0 +1,11 @@
#!/sbin/openrc-run
description="A synchronous (multi-room-capable) AirPlay receiver."
command="/usr/bin/shairport-sync"
command_background="yes"
pidfile="/run/$RC_SVCNAME.pid"
depend() {
need net localmount avahi-daemon nqptp
}