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

Anatol Pomozov anatolik at archlinux.org
Sun Nov 19 23:45:33 UTC 2017


    Date: Sunday, November 19, 2017 @ 23:45:32
  Author: anatolik
Revision: 267507

archrelease: copy trunk to community-staging-x86_64

Added:
  shairport-sync/repos/community-staging-x86_64/
  shairport-sync/repos/community-staging-x86_64/PKGBUILD
    (from rev 267506, shairport-sync/trunk/PKGBUILD)
  shairport-sync/repos/community-staging-x86_64/shairport-sync.install
    (from rev 267506, shairport-sync/trunk/shairport-sync.install)

------------------------+
 PKGBUILD               |   41 +++++++++++++++++++++++++++++++++++++++++
 shairport-sync.install |   11 +++++++++++
 2 files changed, 52 insertions(+)

Copied: shairport-sync/repos/community-staging-x86_64/PKGBUILD (from rev 267506, shairport-sync/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-11-19 23:45:32 UTC (rev 267507)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+
+pkgname=shairport-sync
+pkgver=3.1.3
+pkgrel=2
+pkgdesc='Emulates an AirPort Express for the purpose of streaming music from iTunes and compatible iPods and iPhones'
+url='https://github.com/mikebrady/shairport-sync'
+arch=(x86_64)
+license=(GPL)
+backup=(etc/shairport-sync.conf)
+install=shairport-sync.install
+depends=(openssl avahi libsoxr popt alsa-lib libconfig libpulse)
+makedepends=(xmltoman)
+source=(shairport-sync-$pkgver.zip::https://github.com/mikebrady/shairport-sync/archive/$pkgver.zip
+        useradd.patch::https://github.com/mikebrady/shairport-sync/commit/15c376ad57629dad16f1120dbf4c080f7de48475.patch)
+sha1sums=('cbd22003eba8b590247d2bf597ed9eb1330b319e'
+          '0d216ac98a7c390476c79732e7361c4e66651340')
+
+prepare() {
+  cd shairport-sync-$pkgver
+  # Revert adding users with 'make install'. We have a separate *.install script for it.
+  patch -R < ../useradd.patch
+}
+
+build() {
+  cd shairport-sync-$pkgver
+
+  autoreconf -i -f
+  ./configure --prefix=/usr --sysconfdir=/etc --with-alsa --with-pa --with-avahi --with-ssl=openssl --with-soxr --with-dns_sd --with-pkg-config --with-systemd --with-configfiles
+  make
+
+  sed 's|/usr/local/bin/|/usr/bin/|' -i scripts/shairport-sync.service
+}
+
+package() {
+  cd shairport-sync-$pkgver
+  make DESTDIR="$pkgdir" install
+  install -D -m664 LICENSES "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  rm "$pkgdir"/etc/shairport-sync.conf.sample
+}

Copied: shairport-sync/repos/community-staging-x86_64/shairport-sync.install (from rev 267506, shairport-sync/trunk/shairport-sync.install)
===================================================================
--- community-staging-x86_64/shairport-sync.install	                        (rev 0)
+++ community-staging-x86_64/shairport-sync.install	2017-11-19 23:45:32 UTC (rev 267507)
@@ -0,0 +1,11 @@
+post_install() {
+  getent group shairport-sync &>/dev/null || groupadd --system shairport-sync >/dev/null
+  getent passwd shairport-sync &> /dev/null || useradd --system -c 'ShairportSync AirPort receiver' -d /var/lib/shairport-sync -m -g shairport-sync -s /bin/false -G audio shairport-sync >/dev/null
+
+  [ -f /etc/conf.d/shairport-sync ] && echo "ShairportSync config has been moved to /etc/shairport-sync.conf. Please remove old config file /etc/conf.d/shairport-sync"
+  true
+}
+
+post_upgrade() {
+  post_install
+}



More information about the arch-commits mailing list