# Contributor: Carlo Landmeter # Maintainer: pkgname=shairport-sync pkgver=2.2.2 pkgrel=0 pkgdesc="AirTunes emulator. Shairport Sync adds multi-room capability with Audio Synchronisation" url="https://github.com/mikebrady/shairport-sync" arch="all" license="custom" depends="" depends_dev="alsa-lib-dev libdaemon-dev popt-dev openssl-dev soxr-dev avahi-dev" makedepends="$depends_dev autoconf automake libtool" install="" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/mikebrady/shairport-sync/archive/$pkgver.tar.gz donot-install-init.patch" _builddir="$srcdir/$pkgname-$pkgver" prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" autoreconf -i -f ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --with-alsa \ --with-avahi \ --with-ssl=openssl \ --with-soxr \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } md5sums="6aef265bc1017d42ae646766cd223ca9 shairport-sync-2.2.2.tar.gz ba6dd26a325cdcdf006cb5e5f47d0f82 donot-install-init.patch" sha256sums="f306b2fe34018b8988cf8b4b7c4dd856e823e12b9250a80c809b7d62e30b3eec shairport-sync-2.2.2.tar.gz a828bf92aa8454775f453a36881615406ddb90fa2ca08caf5380bf461fe099a0 donot-install-init.patch" sha512sums="f6529d54741341b4d815b02c24df58b8bf4e51cfe83233aafedefad88963998a2ebaac12e2be9698bcd73d6f99c1487410126915e4bc27e46f62133ef23a05b7 shairport-sync-2.2.2.tar.gz 3fd1731668745b0118f6559d13ecc51418998b7e70b7e26587f987a01e03d175f3e37da68794c600e925d7b7d1cb7d66b3d230442a1f81e97a6d973f0ac8b392 donot-install-init.patch"