public
Last active

Shairport pkg

  • Download Gist
PKGBUILD
Shell
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
pkgname=shairport
pkgver=1.0
pkgrel=1
pkgdesc="An AirPlay-compatible audio receiver"
arch=('i686' 'x86_64' 'armv6h')
url="https://github.com/abrasive/shairport"
license=('public-domain')
depends=('avahi' 'glibc' 'pkgconfig' 'libao' 'openssl')
makedepends=('git' 'libao' 'openssl')
provides=(shairport)
source=(
'git://github.com/abrasive/shairport.git#branch=1.0-dev'
'shairport.service')
md5sums=(
'SKIP'
'4c1602358cfed8fbf4d6009b06a98eac')
 
build() {
cd "$srcdir"/shairport
./configure
make
}
 
package() {
cd "$srcdir"/shairport
install -Dm755 ../shairport\.service "${pkgdir}"/usr/lib/systemd/system/shairport\.service
make PREFIX="$pkgdir/usr" install
install -Dm644 LICENSES "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSES
install -Dm644 README.md "${pkgdir}"/usr/share/doc/${pkgname}/README.md
}
shairport.service
1 2 3 4 5 6 7 8 9 10 11 12
[Unit]
Description=Daemon to enable AirPlay Server
Requires=avahi-daemon.service
After=avahi-daemon.service
 
[Service]
Type=forking
PIDFile=/var/run/shairport.pid
ExecStart=/bin/sh -c '/usr/bin/shairport -d --pidfile=/var/run/shairport.pid -a $(/bin/hostname)'
 
[Install]
WantedBy=multi-user.target

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.