aboutsummaryrefslogtreecommitdiffstats
path: root/community/libshairport/APKBUILD
blob: fefe337b6d46462568d626c6688606de3d511327 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libshairport
pkgver=1.2.1.20121215
_realver=1.2.0.20310_lib
pkgrel=1
pkgdesc="AirPort Express emulator"
url="https://github.com/amejia1/libshairport"
arch="all"
license="MIT"
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() {
	default_prepare
	autoreconf -vif
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

check() {
	cd "$builddir"
	make check
}

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

sha512sums="514925e6942549e8349eec1167886961f77237b1310fa8833b8f2aa9cfa4873c20a9d358a1cb98c3e3fcc82b322ee1b1c3075cfb4a526636e2f76d7e5fbf42f4  libshairport-1.2.0.20310_lib.tar.gz"