blob: cb037a2318e567997512a49b28938a71c61d8136 (
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
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=shairplay
pkgver=20151215
_pkgver=d8e9e32d7ee6b98f13df8ec48565c1f3da0f3062
pkgrel=0
pkgdesc="Apple airplay and raop protocol server"
url="https://github.com/juhovh/shairplay"
arch="all"
license="GPLv3"
depends="avahi libao avahi-compat-libdns_sd"
depends_dev="autoconf automake libtool libltdl libao-dev avahi-compat-libdns_sd"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/juhovh/shairplay/archive/$_pkgver.zip
$pkgname.confd
$pkgname.initd"
_builddir="$srcdir"/$pkgname-$_pkgver
build() {
cd "$_builddir"
sed -e 's/airport.key/\/etc\/shairplay\/airport.key/g' -i src/shairplay.c
./autogen.sh
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc/shairplay
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install
install -Dm644 airport.key "$pkgdir"/etc/shairplay/airport.key
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm755 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname \
|| return 1
install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname \
|| return 1
rm -f "$pkgdir"/usr/lib/*.la
}
md5sums="3f8e6f065a22fba2402ed782e1011974 d8e9e32d7ee6b98f13df8ec48565c1f3da0f3062.zip
0efed5b1b7ade0ad43fed454ec5ab046 shairplay.confd
a7ec56ee24efbf00753c7e0f89f4d870 shairplay.initd"
sha256sums="07fd02fd37e96ffcb1b8a1768443beeb5e5372776f12268d9107a74f7a13d67a d8e9e32d7ee6b98f13df8ec48565c1f3da0f3062.zip
e1c40726a08253d5c905fef4dda1ae42595163425589e46c717f09dd736d5d27 shairplay.confd
3278b3dc6d32db7646514680934f1327eb2910dbbf68f860fd36a2aa0cedef6b shairplay.initd"
sha512sums="fe1d896628acd395168f76ff52a2467d8cea1e9300eca3053f2ed7d5f202b281059e1c18c86e4ef9fd716f4c8c5d3776f81b4f845b922df8776dc3b785294fe0 d8e9e32d7ee6b98f13df8ec48565c1f3da0f3062.zip
5823ce231f49deb5fb6d80dc3dc469e14d5b9e998984aff5178626b84a50bb8dcfa47a6d035cdc286d4e1c58569c315e6985ce91c86812e84d5a518d62bce359 shairplay.confd
5ee1fc76ad17fc61cfa138f86c35227dc12dac4bfda73efa75c88ed3e8ad28b1fa84efe2ded01739d8960581cd3243d3037e6476e840d06fe66a9d2d148f5149 shairplay.initd"
|