diff options
author | Britney Fransen <brfransen@gmail.com> | 2014-05-06 20:21:36 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2014-05-06 20:21:36 (GMT) |
commit | 99f7455467559a3af544e88ba3e9512749f2b349 (patch) | |
tree | f4eb122af83a9927a1f3699f8a1a26f0f87aa1d4 /abs | |
parent | 750642bbdbc4bdd370437a16f4a1ece1e5b31fb5 (diff) | |
download | linhes_pkgbuild-99f7455467559a3af544e88ba3e9512749f2b349.zip linhes_pkgbuild-99f7455467559a3af544e88ba3e9512749f2b349.tar.gz linhes_pkgbuild-99f7455467559a3af544e88ba3e9512749f2b349.tar.bz2 |
shairplay: initial inclusion. dep of xbmc 13
Diffstat (limited to 'abs')
-rw-r--r-- | abs/extra/shairplay/PKGBUILD | 51 | ||||
-rw-r--r-- | abs/extra/shairplay/shairplay.service | 13 |
2 files changed, 64 insertions, 0 deletions
diff --git a/abs/extra/shairplay/PKGBUILD b/abs/extra/shairplay/PKGBUILD new file mode 100644 index 0000000..e5f4d44 --- /dev/null +++ b/abs/extra/shairplay/PKGBUILD @@ -0,0 +1,51 @@ +# $Id$ +# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com> +# Contributor: winlu + +pkgname=shairplay +_gitname=shairplay +pkgver=20140422 +pkgrel=1 +pkgdesc='Apple airplay and raop protocol server' +arch=('i686' 'x86_64') +url='https://github.com/juhovh/shairplay' +license=('custom') +depends=('libao') +optdepends=('avahi: to run the server') +makedepends=('git') +source=("$_gitname::git://github.com/juhovh/shairplay.git#commit=64d59e3087f829006d091fa0d114efb50972a2bf" + 'shairplay.service') +sha256sums=('SKIP' + 'f0a176539a6c5be46dc832d054be2f18c3256e5fd34c5f1416c9463bd75c82b3') +options=(!libtool) +provides=('libshairport') +conflicts=('libshairport') + +build() { + cd $_gitname + + # installing airport.key to /etc/shairplay/ + sed 's/airport.key/\/etc\/shairplay\/airport.key/' -i "$srcdir/$_gitname"/src/shairplay.c + + ./autogen.sh + ./configure --prefix=/usr/ + make +} + + +package() { + cd $_gitname + make DESTDIR="$pkgdir" install + + # install systemd service file + install -Dm644 "$srcdir/shairplay.service" "$pkgdir/usr/lib/systemd/system/shairplay.service" + + # install key file + install -Dm644 airport.key "$pkgdir/etc/shairplay/airport.key" + + # install license file + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + # install documentation + install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md" +} diff --git a/abs/extra/shairplay/shairplay.service b/abs/extra/shairplay/shairplay.service new file mode 100644 index 0000000..a624384 --- /dev/null +++ b/abs/extra/shairplay/shairplay.service @@ -0,0 +1,13 @@ +[Unit] +Description=Apple airplay and raop protocol server +Requires=network.target sound.target +Wants=avahi-daemon.service +After=avahi-daemon.service + +[Service] +Type=simple +ExecStart=/usr/bin/shairplay -a %H +Restart=always + +[Install] +WantedBy=multi-user.target |