aboutsummaryrefslogtreecommitdiffstats
path: root/testing/shairport-sync/APKBUILD
blob: 0ef8b3355b474f9cd8668ec0a243c3c7e09874e4 (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
52
53
54
55
56
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=shairport-sync
pkgver=2.8.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=""
depends_dev="alsa-lib-dev libdaemon-dev popt-dev openssl-dev soxr-dev
	avahi-dev libconfig-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
	"

_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
}

md5sums="72b6a2e6b753aa324540963776dc83e3  shairport-sync-2.8.1.tar.gz"
sha256sums="9e137da3c96c233f55a35ac50cb2fc9f96d4bee76c4907b75a3dd6af7be1745a  shairport-sync-2.8.1.tar.gz"
sha512sums="5075fafe47a8daa30dff592ac9ce59efc47c9ef9dd4f6ca2535c94c69b57da4737223d181b9d08deab729c3b2ee4ad2ecc234a8393ba2d625f4e1ba8e0b99eb6  shairport-sync-2.8.1.tar.gz"