diff options
author | willemw12 | 2015-06-09 09:08:00 +0200 |
---|---|---|
committer | willemw12 | 2015-06-09 09:08:00 +0200 |
commit | 759d88d085ca0a5ec7e85d5a700b841551bb04cf (patch) | |
tree | 3a6f7be170985fe8f5b52f54fefa518cf29cf890 /PKGBUILD | |
download | aur-759d88d085ca0a5ec7e85d5a700b841551bb04cf.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8aec336d56e6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: willemw <willemw12@gmail.com> +# Contibutor: Justin Dray <justin@dray.be> + +_pkgname=sickrage +pkgname=$_pkgname-git +pkgver=4.0.24.r2.gf9246bc +pkgrel=1 +pkgdesc="A PVR application that downloads and manages your TV shows. Echel0n fork of sickbeard, with tvrage and torrents support." +arch=('any') +url="https://github.com/SiCKRAGETV/SickRage" +license=('GPL3') +depends=('python2-cheetah') +makedepends=('git') +optdepends=('python2-notify: desktop notifications' + 'python2-pyopenssl: enable ssl' + 'sabnzbd: NZB downloader' + 'unrar: rar archives') +provides=($_pkgname) +conflicts=($_pkgname) +options=('!strip') +install=$pkgname.install +source=("$pkgname::git://github.com/SiCKRAGETV/SickRage.git" + 'sickrage.service' + 'sickrage.tmpfile') +md5sums=('SKIP' + '9c03e4b2ed134981afefc643cac2c282' + 'f7a12df978d649da4e77d88e03f50252') + +pkgver() { + cd $pkgname + git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cd $pkgname + sed -i 's|#![ \t]*/usr/bin/env python[ \t\r]*$|#!/usr/bin/env python2|' autoProcessTV/*.py +} + +package() { + # 'source' install type. Does not include git repository files + install -dm755 "$pkgdir/opt/sickrage" + cp -rp $pkgname/* "$pkgdir/opt/sickrage" + + install -Dm644 sickrage.service "$pkgdir/usr/lib/systemd/system/sickrage.service" + install -Dm644 sickrage.tmpfile "$pkgdir/usr/lib/tmpfiles.d/sickrage.conf" +} + |