[arch-commits] Commit in shairplay/repos (3 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 16:47:49 UTC 2020


    Date: Tuesday, July 7, 2020 @ 16:47:49
  Author: felixonmars
Revision: 659415

archrelease: copy trunk to community-staging-x86_64

Added:
  shairplay/repos/community-staging-x86_64/
  shairplay/repos/community-staging-x86_64/PKGBUILD
    (from rev 659414, shairplay/trunk/PKGBUILD)
  shairplay/repos/community-staging-x86_64/shairplay.service
    (from rev 659414, shairplay/trunk/shairplay.service)

-------------------+
 PKGBUILD          |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 shairplay.service |   13 ++++++++++++
 2 files changed, 67 insertions(+)

Copied: shairplay/repos/community-staging-x86_64/PKGBUILD (from rev 659414, shairplay/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 16:47:49 UTC (rev 659415)
@@ -0,0 +1,54 @@
+# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
+# Contributor: winlu
+
+pkgname=shairplay
+_commit=096b61a
+pkgver=20180824.096b61a
+pkgrel=3
+pkgdesc='Apple airplay and raop protocol server'
+arch=('x86_64')
+url='https://github.com/juhovh/shairplay'
+license=('custom')
+depends=('libao' 'avahi')
+makedepends=('git')
+source=(
+    "$pkgname::git://github.com/juhovh/shairplay.git#commit=$_commit"
+	'shairplay.service'
+)
+sha256sums=('SKIP'
+            'f0a176539a6c5be46dc832d054be2f18c3256e5fd34c5f1416c9463bd75c82b3')
+options=(!libtool)
+
+pkgver() {
+	cd "$pkgname"
+	git log -1 --date=short --format="%cd.%h" | tr -d '-'
+}
+
+build() {
+	cd "$pkgname"
+
+	# installing airport.key to /etc/shairplay/
+	sed 's/airport.key/\/etc\/shairplay\/airport.key/' -i "$srcdir/$pkgname"/src/shairplay.c
+
+	./autogen.sh
+	./configure --prefix=/usr/
+	make
+}
+
+
+package() {
+	cd "$pkgname"
+	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"
+}

Copied: shairplay/repos/community-staging-x86_64/shairplay.service (from rev 659414, shairplay/trunk/shairplay.service)
===================================================================
--- community-staging-x86_64/shairplay.service	                        (rev 0)
+++ community-staging-x86_64/shairplay.service	2020-07-07 16:47:49 UTC (rev 659415)
@@ -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


More information about the arch-commits mailing list