Skip to content

Commit

Permalink
improved and updated PKGBUILD
Browse files Browse the repository at this point in the history
- using config and init script as generated by shairport-sync
(--with-systemd and --with-configfiles)
- fixed --prefix erroneously containing $pkgdir
- added DESTDIR to make install
  • Loading branch information
moritzmhmk committed Feb 7, 2016
1 parent 05a14b7 commit 2d082c8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 44 deletions.
25 changes: 7 additions & 18 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,46 +1,35 @@
# Maintainer: Elia Cereda <eliacereda+arch at gmail dot com>
# Maintainer: Moritz K. <moritzmhmk at gmail dot com>

pkgname=shairport-sync-git
pkgver=2.3.r38.g6bd14a6
pkgver=2.8.0
pkgrel=1
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=(i686 x86_64 armv6h armv7h)
license=('custom')
backup=(etc/conf.d/shairport-sync)
backup=(etc/shairport-sync.conf)
install='shairport-sync.install'
depends=(alsa-lib libdaemon openssl avahi popt libsoxr libconfig)
makedepends=(git)
source=("git+https://github.com/mikebrady/shairport-sync.git#branch=development"
shairport-sync.install
shairport-sync.service
shairport-sync.conf)
shairport-sync.install)
sha1sums=('SKIP'
'd51485f3857529b70a29b38814ea60e7dde54ca8'
'79c9fcd8d885b265c5704a462e9b0445ea8e66c7'
'789c29ddd39df97138932239e066772c6c118afe')
'd51485f3857529b70a29b38814ea60e7dde54ca8')

pkgver() {
cd shairport-sync

git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

build() {
cd shairport-sync

autoreconf -i -f
./configure --without-initscript --without-configfiles --with-metadata --with-alsa --with-avahi --with-ssl=openssl --with-soxr --prefix="$pkgdir/usr"
./configure --with-systemd --with-configfiles --with-metadata --with-alsa --with-avahi --with-ssl=openssl --with-soxr --prefix=/usr
make
}

package() {
install -D -m644 shairport-sync.service "$pkgdir/usr/lib/systemd/system/shairport-sync.service"
install -D -m644 shairport-sync.conf "$pkgdir/etc/conf.d/shairport-sync"

cd shairport-sync

install -D -m664 LICENSES "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

make install
make DESTDIR="$pkgdir/" install
}
12 changes: 0 additions & 12 deletions shairport-sync.conf

This file was deleted.

14 changes: 0 additions & 14 deletions shairport-sync.service

This file was deleted.

0 comments on commit 2d082c8

Please sign in to comment.