summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorwillemw122015-12-12 14:08:10 +0100
committerwillemw122015-12-12 14:08:10 +0100
commit21a78c4ce007a787b08334ab0a40e0ab7a67d003 (patch)
tree361715312ac831d1b253169437e4052c20d7245a
parent29663861411a7e320b93df0f3872ce215981a61a (diff)
downloadaur-21a78c4ce007a787b08334ab0a40e0ab7a67d003.tar.gz
Set WorkingDirectory. Fixes unrar extract and cleanup.
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD17
-rw-r--r--sickrage.service2
3 files changed, 20 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3e765e55cb9..1cc1267d4f6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,8 @@
+# Generated by mksrcinfo v8
+# Sat Dec 12 13:03:47 UTC 2015
pkgbase = sickrage-git
pkgdesc = A PVR application that downloads and manages your TV shows. Echel0n fork of sickbeard, with tvrage, torrents and anime support.
- pkgver = 4.1.0.2.r354.gfc4d505
+ pkgver = 4.1.0.2.r370.g4da36fb
pkgrel = 1
url = https://github.com/SiCKRAGETV/SickRage
install = sickrage-git.install
@@ -19,7 +21,7 @@ pkgbase = sickrage-git
source = sickrage.service
source = sickrage.tmpfile
md5sums = SKIP
- md5sums = 70a920d85e5e28d9e920d3fb90247f25
+ md5sums = d55285ca7b6e6b01413f3a9e46cc0c4d
md5sums = f7a12df978d649da4e77d88e03f50252
pkgname = sickrage-git
diff --git a/PKGBUILD b/PKGBUILD
index 4cc1384bada..c67eb48364b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,12 +12,13 @@
_pkgname=sickrage
pkgname=$_pkgname-git
-pkgver=4.1.0.2.r354.gfc4d505
+pkgver=4.1.0.2.r370.g4da36fb
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')
+#unrar
makedepends=('git')
depends=('python2-mako' 'python2-cheetah')
# 'deluge: supported torrent client'
@@ -36,7 +37,7 @@ source=("$pkgname::git://github.com/SiCKRAGETV/SickRage.git"
'sickrage.service'
'sickrage.tmpfile')
md5sums=('SKIP'
- '70a920d85e5e28d9e920d3fb90247f25'
+ 'd55285ca7b6e6b01413f3a9e46cc0c4d'
'f7a12df978d649da4e77d88e03f50252')
pkgver() {
@@ -44,8 +45,18 @@ pkgver() {
git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
+#prepare() {
+# cd $pkgname
+# sed -i 's/UnRAR2/unrar2/g' lib/unrar2/test_UnRAR2.py
+#}
+#
+#check() {
+# cd $pkgname/lib/unrar2
+# PYTHONPATH="$(pwd)/..:$PYTHONPATH" python2 test_UnRAR2.py
+#}
+
package() {
- # The "source" sickrage install type does not include the .git folder (git repository files)
+ # The sickrage "SOURCE" install type does not have the .git folder (git repository files)
install -dm755 "$pkgdir/opt/sickrage"
cp -rp $pkgname/* "$pkgdir/opt/sickrage"
diff --git a/sickrage.service b/sickrage.service
index ed1f7fd5368..128304b9699 100644
--- a/sickrage.service
+++ b/sickrage.service
@@ -6,6 +6,8 @@ After=network.target
Restart=on-success
User=sickrage
Group=sickrage
+WorkingDirectory=/opt/sickrage
+
#Type=forking
#PIDFile=/run/sickrage/sickrage.pid
#ExecStart=/usr/bin/env python2 /opt/sickrage/SickBeard.py --quiet --daemon --nolaunch --pidfile=/run/sickrage/sickrage.pid --config /opt/sickrage/config.ini --datadir /opt/sickrage