scripts: add PKGBUILD and systemd service

This commit is contained in:
James Laird
2013-04-08 19:27:34 +10:00
parent 5f041a5adb
commit 92516596f0
2 changed files with 34 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
# for Arch Linux
pkgname=shairport-git
pkgver=1.0
pkgrel=1
pkgdesc="An AirPlay-compatible audio receiver"
url='http://github.com/abrasive/shairport'
arch=('i686' 'x86_64' 'armhf')
license=('public-domain')
groups=('daemons')
depends=('glibc' 'pkgconfig' 'libao' 'openssl')
source=(git://github.com/abrasive/shairport.git#branch=1.0-dev)
md5sums=('SKIP')
build() {
cd "$srcdir"/shairport
make
}
package() {
cd "$srcdir"/shairport
make PREFIX="$pkgdir/usr" install
}
+12
View File
@@ -0,0 +1,12 @@
[Unit]
Description=Shairport AirTunes receiver
After=sound.target
Requires=avahi-daemon.service
After=avahi-daemon.service
[Service]
ExecStart=/usr/bin/shairport
Restart=always
[Install]
WantedBy=multi-user.target