aboutsummaryrefslogtreecommitdiffstats
path: root/community/libshairport/APKBUILD
blob: 349388efe5d5f5973ff1993115a0fa79ab1d2172 (plain) (blame)
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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libshairport
pkgver=1.2.1
_realver=1.2.0.20310_lib
pkgrel=0
pkgdesc="AirPort Express emulator"
url="https://github.com/amejia1/libshairport"
arch="all"
license="GPL"
depends=""
depends_dev="avahi-dev libao-dev openssl-dev"
makedepends="$depends_dev autoconf automake libtool"
install=""
subpackages="$pkgname-dev"
source="http://mirrors.xbmc.org/build-deps/darwin-libs/libshairport-$_realver.tar.gz"

_builddir="$srcdir"/libshairport-$_realver
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 -vif
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
}

md5sums="b009e0550c3cf54d740e92a5f47821e1  libshairport-1.2.0.20310_lib.tar.gz"