# Maintainer: Anthony Ruhier # Many thanks to Justin Dray, maintainer of sickrage, for his PKGBUILD used as # a base for this one. pkgname=headphones-git pkgver=0.5.18.r159.gda9287d7 pkgrel=4 pkgdesc="Music downloader for usenet and torrents." arch=('any') url="https://github.com/rembo10/headphones" license=('GPL3') depends=('python2') optdepends=('sabnzbd: usenet downloader' 'nzbget: usenet downloader' 'transmission-cli: torrent downloader (CLI and daemon)' 'transmission-gtk: torrent downloader (GTK+)' 'transmission-qt: torrent downloader (Qt)' 'deluge: torrent downloader' 'rtorrent: torrent downloader' 'jackett: torrent indexer proxy') makedepends=('git') provides=('headphones') conflicts=('headphones') options=('!strip') install='headphones.install' source=('git+https://github.com/rembo10/headphones.git' 'headphones.service' 'headphones.sysusers' 'headphones.tmpfiles') sha256sums=('SKIP' '60ef2bc4c0bc1d23d4fe43202759cb24d9f456bd00cb8841ee11b2c4cbce917e' '348abc0627d63762a97655b5893c306e5b923857be5d0b876e9df5fea7ef9ed9' 'f1e537c6853c3d641ec2266283b726a8fa5ed8f78c4325d295e66bb4d4868585') pkgver() { cd "${srcdir}/headphones" git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//' } package() { install -d -m 755 "${pkgdir}/usr/lib/headphones" cp -a "${srcdir}/headphones"/* "${pkgdir}/usr/lib/headphones" rm -rf "${pkgdir}/usr/lib/headphones/.git" install -D -m 644 headphones.service "${pkgdir}/usr/lib/systemd/system/headphones.service" install -D -m 644 headphones.sysusers "${pkgdir}/usr/lib/sysusers.d/headphones.conf" install -D -m 644 headphones.tmpfiles "${pkgdir}/usr/lib/tmpfiles.d/headphones.conf" } # vim: set ts=2 sw=2 ft=sh noet: