Add initial APKBUILD for shairport-sync and nqptp
This commit is contained in:
parent
835abdc133
commit
f534bdfeb8
35
nqptp/APKBUILD
Normal file
35
nqptp/APKBUILD
Normal file
@ -0,0 +1,35 @@
|
||||
# Maintainer: hoellen <dev@hoellen.eu>
|
||||
pkgname=nqptp
|
||||
pkgver=0.1
|
||||
pkgrel=0
|
||||
pkgdesc="Not Quite PTP. A daemon that monitors timing data from any PTP clocks."
|
||||
url="https://github.com/mikebrady/nqptp"
|
||||
arch="all"
|
||||
license="GPL-2.0-or-later"
|
||||
makedepends="autoconf automake libtool git"
|
||||
subpackages="$pkgname-openrc"
|
||||
source="$pkgname.initd"
|
||||
options=!check
|
||||
|
||||
builddir="$srcdir/$pkgname"
|
||||
|
||||
prepare() {
|
||||
git clone $url $builddir
|
||||
cd $builddir
|
||||
default_prepare
|
||||
autoreconf -i -f
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure --prefix=/usr --localstatedir=/var
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $builddir
|
||||
make DESTDIR="$pkgdir" install
|
||||
install -m 755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
|
||||
}
|
||||
|
||||
|
||||
sha512sums="8af548879c307a67c818377a4e18f7c6f3ad824f56c5d8d8be15598c816e2e2160cfcecde5953253deb5b3001bb2637261ef05499cb9d64a08e64c381ef82916 nqptp.initd"
|
14
nqptp/nqptp.initd
Normal file
14
nqptp/nqptp.initd
Normal file
@ -0,0 +1,14 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
name="nqptp"
|
||||
description="A daemon that monitors timing data from any PTP clocks"
|
||||
command="/usr/bin/nqptp"
|
||||
command_background="yes"
|
||||
|
||||
pidfile="/run/$RC_SVCNAME.pid"
|
||||
|
||||
depend() {
|
||||
need net localmount
|
||||
}
|
||||
|
||||
# ToDO: run as user nqptp: setcap 'cap_net_bind_service=+ep' /usr/local/bin/nqptp
|
52
shairport-sync/APKBUILD
Normal file
52
shairport-sync/APKBUILD
Normal 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"
|
11
shairport-sync/shairport-sync.initd
Normal file
11
shairport-sync/shairport-sync.initd
Normal 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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user