diff options
author | Britney Fransen <brfransen@gmail.com> | 2018-09-06 16:35:27 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2018-09-06 16:35:27 (GMT) |
commit | 5669815ec3a539cf7b5ac7d8da2cbba3aeff44be (patch) | |
tree | f13051093a52f47f5954c2ee2a783bc2f0f62f96 /abs/extra/shairplay | |
parent | 8d35f28049488f2585ef765bf48e7a58958fd587 (diff) | |
parent | 04697136037cb5341ee6c051f8aaa265c0400c82 (diff) | |
download | linhes_pkgbuild-5669815ec3a539cf7b5ac7d8da2cbba3aeff44be.zip linhes_pkgbuild-5669815ec3a539cf7b5ac7d8da2cbba3aeff44be.tar.gz linhes_pkgbuild-5669815ec3a539cf7b5ac7d8da2cbba3aeff44be.tar.bz2 |
Merge branch 'testing'
Diffstat (limited to 'abs/extra/shairplay')
-rw-r--r-- | abs/extra/shairplay/PKGBUILD | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/abs/extra/shairplay/PKGBUILD b/abs/extra/shairplay/PKGBUILD index 6dcd537..32840e9 100644 --- a/abs/extra/shairplay/PKGBUILD +++ b/abs/extra/shairplay/PKGBUILD @@ -3,27 +3,33 @@ # Contributor: winlu pkgname=shairplay -_gitname=shairplay -pkgver=20140422 -pkgrel=2 +_commit=ce80e00 +pkgver=20160101.ce80e00 +pkgrel=1 pkgdesc='Apple airplay and raop protocol server' -arch=('i686' 'x86_64') +arch=('x86_64') url='https://github.com/juhovh/shairplay' license=('custom') depends=('libao') optdepends=('avahi: to run the server') makedepends=('git') -source=("$_gitname::git://github.com/juhovh/shairplay.git#commit=64d59e3087f829006d091fa0d114efb50972a2bf" - 'shairplay.service') +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 $_gitname + cd "$pkgname" # installing airport.key to /etc/shairplay/ - sed 's/airport.key/\/etc\/shairplay\/airport.key/' -i "$srcdir/$_gitname"/src/shairplay.c + sed 's/airport.key/\/etc\/shairplay\/airport.key/' -i "$srcdir/$pkgname"/src/shairplay.c ./autogen.sh ./configure --prefix=/usr/ @@ -32,7 +38,7 @@ build() { package() { - cd $_gitname + cd "$pkgname" make DESTDIR="$pkgdir" install # install systemd service file |