mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
shairport-sync: new aport
This commit is contained in:
parent
f33774c5bb
commit
7487bb01e7
60
testing/shairport-sync/APKBUILD
Normal file
60
testing/shairport-sync/APKBUILD
Normal file
@ -0,0 +1,60 @@
|
||||
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
|
||||
# Maintainer:
|
||||
pkgname=shairport-sync
|
||||
pkgver=2.2.2
|
||||
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=""
|
||||
depends_dev="alsa-lib-dev libdaemon-dev popt-dev openssl-dev soxr-dev
|
||||
avahi-dev"
|
||||
makedepends="$depends_dev autoconf automake libtool"
|
||||
install=""
|
||||
subpackages="$pkgname-doc"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/mikebrady/shairport-sync/archive/$pkgver.tar.gz
|
||||
donot-install-init.patch"
|
||||
|
||||
_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
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$_builddir"
|
||||
autoreconf -i -f
|
||||
./configure \
|
||||
--build=$CBUILD \
|
||||
--host=$CHOST \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--mandir=/usr/share/man \
|
||||
--infodir=/usr/share/info \
|
||||
--localstatedir=/var \
|
||||
--with-alsa \
|
||||
--with-avahi \
|
||||
--with-ssl=openssl \
|
||||
--with-soxr \
|
||||
|| return 1
|
||||
make || return 1
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$_builddir"
|
||||
make DESTDIR="$pkgdir" install || return 1
|
||||
rm -f "$pkgdir"/usr/lib/*.la
|
||||
}
|
||||
|
||||
md5sums="6aef265bc1017d42ae646766cd223ca9 shairport-sync-2.2.2.tar.gz
|
||||
ba6dd26a325cdcdf006cb5e5f47d0f82 donot-install-init.patch"
|
||||
sha256sums="f306b2fe34018b8988cf8b4b7c4dd856e823e12b9250a80c809b7d62e30b3eec shairport-sync-2.2.2.tar.gz
|
||||
a828bf92aa8454775f453a36881615406ddb90fa2ca08caf5380bf461fe099a0 donot-install-init.patch"
|
||||
sha512sums="f6529d54741341b4d815b02c24df58b8bf4e51cfe83233aafedefad88963998a2ebaac12e2be9698bcd73d6f99c1487410126915e4bc27e46f62133ef23a05b7 shairport-sync-2.2.2.tar.gz
|
||||
3fd1731668745b0118f6559d13ecc51418998b7e70b7e26587f987a01e03d175f3e37da68794c600e925d7b7d1cb7d66b3d230442a1f81e97a6d973f0ac8b392 donot-install-init.patch"
|
||||
13
testing/shairport-sync/donot-install-init.patch
Normal file
13
testing/shairport-sync/donot-install-init.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index ce1f0ba..9b32c2c 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -35,7 +35,3 @@ endif
|
||||
if USE_DNS_SD
|
||||
shairport_sync_SOURCES += mdns_dns_sd.c
|
||||
endif
|
||||
-
|
||||
-install-exec-hook:
|
||||
- [ -f /etc/init.d/shairport-sync ] || cp scripts/shairport-sync /etc/init.d/
|
||||
- update-rc.d shairport-sync defaults 90 10
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user