aboutsummaryrefslogtreecommitdiffstats
path: root/testing/shairport-sync/APKBUILD
blob: 8dae24f5fcf182bac868b1de13d4183f0ce87bb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=shairport-sync
pkgver=3.1.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 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/$pkgname/archive/$pkgver.tar.gz
	$pkgname.initd"
builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	default_prepare
	cd "$builddir"
	autoreconf -i -f
}

build() {
	cd "$builddir"

	./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
	make
}

package() {
	cd "$builddir"

	make DESTDIR="$pkgdir" install
	install -m 755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}

sha512sums="46a44acabdf2cfeef1187ad7a37173ba2153c7c5d8729d62f5eaf67dade5d134ed12764f200763d199d2e89e19d88566eacb04dfd0b27e8970277bad37780f2d  shairport-sync-3.1.1.tar.gz
aeead51ef0f17d360bb1e2d2ae897974ef507ef56db84e6aeb79d8ec522c3bb9336f01ff4150e70fecfebf9808dd7190cb2839e287cf0ef6e1886504c1f1edc6  shairport-sync.initd"