# Maintainer: willemw # Contibutor: Justin Dray # Contibutor: B4SH-B00STER _pkgname=sickrage pkgname=$_pkgname-pip pkgver=8.9.2.r0 pkgrel=1 pkgdesc="A PVR application that downloads and manages your TV shows. Echel0n fork of sickbeard, with tvrage, torrents and anime support." arch=('any') url="https://github.com/SiCKRAGETV/SickRage" license=('GPL3') depends=('python2-virtualenv') # 'deluge: supported torrent client' # 'qbittorrent: supported torrent client' # 'rtorrent: supported torrent client' # 'sabnzbd: supported NZB downloader' # 'transmission-cli: supported torrent client' optdepends=('unrar: RAR archives') provides=($_pkgname) conflicts=($_pkgname) options=('!strip') install=$pkgname.install source=('sickrage.service' 'sickrage.sysusers' 'sickrage.tmpfile') md5sums=('3d67651fa77e6f2a0c37a995ad20bc2f' '6a7db7e14e74072d29e482b06b41dfa7' 'f7a12df978d649da4e77d88e03f50252') pkgver() { #pip2 search $_pkgname | awk '$1 == "sickrage" { gsub("[()]", ""); print $2 ".r0" }' #curl -s https://pypi.python.org/pypi/$_pkgname/json | grep version | head -1 | awk -F: '{ print $2 }' | awk -F'"' '$0=$2 ".r0"' curl -s https://pypi.python.org/pypi/$_pkgname/json | awk -F'"' '$2 == "version" { print $4 ".r0" }' } package() { install -Dm644 sickrage.service "$pkgdir/usr/lib/systemd/system/sickrage.service" install -Dm644 sickrage.sysusers "$pkgdir/usr/lib/sysusers.d/sickrage.conf" install -Dm644 sickrage.tmpfile "$pkgdir/usr/lib/tmpfiles.d/sickrage.conf" }