blob: 583b6ef922d106665de8248161fc33dae9a49719 (
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
|
# Maintainer: winlu
# Contributor: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
# Contributor: skunark <jim.casteel@torpedia.org>
# Contributor: graysky <graysky@archlinux.us>
pkgname=shairplay-git
_gitname=shairplay
pkgver=158.096b61a
pkgrel=1
pkgdesc='Apple airplay and raop protocol server'
arch=('i686' 'x86_64')
url='https://github.com/juhovh/shairplay'
license=('GPLv3')
depends=('avahi' 'libao')
makedepends=('git')
source=("$_gitname::git+https://github.com/juhovh/shairplay.git"
"shairplay.service")
sha256sums=('SKIP'
'ac18abf1fd5c6735bbeee5918b528b9df83ec85141b46e3bec44b5abe55dfe52')
options=(!libtool)
provides=('libshairport' 'shairplay')
conflicts=('libshairport' 'shairplay')
pkgver() {
cd "$srcdir/$_gitname"
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
build() {
cd $_gitname
./autogen.sh
./configure --prefix=/usr/
# installing airport.key to /etc/shairplay/
sed 's/airport.key/\/etc\/shairplay\/airport.key/' -i "$srcdir/$_gitname"/src/shairplay.c
make
}
package() {
install -Dm755 "${srcdir}"/shairplay.service "${pkgdir}"/usr/lib/systemd/system/shairplay.service
cd $_gitname
make DESTDIR="$pkgdir" install
install -Dm644 airport.key "${pkgdir}"/etc/shairplay/airport.key
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
install -Dm644 README.md "${pkgdir}"/usr/share/doc/${pkgname}/README.md
}
|