Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved PKGBUILD #6

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 9 additions & 27 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,54 +1,36 @@
# Maintainer: Elia Cereda <eliacereda+arch at gmail dot com>
# Contributor: Moritz K. <moritzmhmk at gmail dot com>

pkgname=shairport-sync-git
pkgver=2.1.15.r1.gcf6594d
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)
depends=(alsa-lib libdaemon openssl avahi popt libsoxr libconfig)
makedepends=(git)
source=("git+https://github.com/mikebrady/shairport-sync.git"
shairport-sync.install
shairport-sync.service
shairport-sync.conf
remove-init.d.patch)
source=("git+https://github.com/mikebrady/shairport-sync.git#branch=development"
shairport-sync.install)
sha1sums=('SKIP'
'd51485f3857529b70a29b38814ea60e7dde54ca8'
'fe62feeef1c947ed6ed3500b7b922dcaf9e8987c'
'6c4979abddb4b1c0242a941279d41617ab8d183c'
'83ddd76fdb548bf6321e38ff7cabe14bf2bb35d4')
'd51485f3857529b70a29b38814ea60e7dde54ca8')

pkgver() {
cd shairport-sync

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

prepare() {
cd shairport-sync

git apply "$srcdir/remove-init.d.patch"
}

build() {
cd shairport-sync

autoreconf -i -f
./configure --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
Copy link

@silverwind silverwind Dec 9, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggesting --sysconfdir=/etc so config files end up in /etc instead of /usr/local/etc

edit: Might now work. With --prefix, it searches in $prefix/etc, hmm.

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
}
11 changes: 0 additions & 11 deletions remove-init.d.patch

This file was deleted.

2 changes: 0 additions & 2 deletions shairport-sync.conf

This file was deleted.

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

This file was deleted.