# Maintainer: Anthony Ruhier # Many thanks to Justin Dray, maintainer of sickrage, for his PKGBUILD used as # a base for this one. _name=headphones pkgname=${_name} pkgver=0.5.14 pkgrel=1 pkgdesc="Headphones is an automated music downloader for NZB and Torrent, written in Python. It supports SABnzbd, NZBget, Transmission, µTorrent and Blackhole." arch=('any') url="https://github.com/rembo10/${_name}" license=('GPL3') depends=('python2') optdepends=('sabnzbd: NZB downloader' 'python2-notify: desktop notifications' 'unrar: automatic decompression' 'git: pull new versions from git') conflicts=("${_name}-git") replaces=("${_name}-git") options=('!strip') install="${_name}.install" source=("${url}/archive/v${pkgver}.tar.gz" "${_name}-system.service" "${_name}-user.service" "${_name}.tmpfile") sha256sums=('34260eb1bfc6282c8a12097510b55f4b3a1e2b0f52c91e8c3e1edf852d9a8fee' '14f00904135940e00a6af5742116d950be07248a578c2562373413155f768d01' '22d2a8da5cc8da149ddac086e52c0e30b51671644e039d435f853cf383f15317' 'b8f7030f570e7707eb9c0f41c382e37d54244e7885c795a9f31788efdd45914e') package() { mkdir -p "${pkgdir}/opt/${_name}" chmod 775 "${pkgdir}/opt/${_name}" cp -r ${_name}-${pkgver}/* "$pkgdir/opt/${_name}" install -D -m644 ${_name}-system.service "$pkgdir/usr/lib/systemd/system/${_name}.service" install -D -m644 ${_name}-user.service "$pkgdir/usr/lib/systemd/user/${_name}.service" install -D -m644 ${_name}.tmpfile "$pkgdir/usr/lib/tmpfiles.d/${_name}.conf" find "$pkgdir" -type d -name '.git' -exec rm -r '{}' + } # vim: set ts=2 sw=2 ft=sh noet: