New package: sickbeard-507

This commit is contained in:
ananteris 2015-10-23 11:12:42 -04:00 committed by ananteris
parent 5e841216e5
commit 7a93e6eed7
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,8 @@
#!/bin/sh
if [ ! -d /var/lib/sickebard ];
then
mkdir -p /var/lib/sickbeard
chown sickbeard:sickbeard /var/lib/sickbeard
fi
exec chpst -usickbeard:sickbeard /usr/bin/python /usr/share/sickbeard/SickBeard.py --datadir=/var/lib/sickbeard --quiet --nolaunch

View file

@ -0,0 +1,31 @@
# Template build file for 'sickbeard'.
pkgname=sickbeard
version=507
revision=1
depends="python-cheetah"
noarch=yes
short_desc="Usenet personal video recorder"
maintainer="Ananteris <ananteris@mailinator.com>"
system_accounts="sickbeard"
sickbeard_homedir="/var/lib/sickbeard"
distfiles="https://github.com/midgetspy/Sick-Beard/archive/build-${version}.tar.gz"
checksum=eaf95ac78e065f6dd8128098158b38674479b721d95d937fe7adb892932e9101
wrksrc="Sick-Beard-build-${version}"
homepage="http://sickbeard.com"
license="GPL-3"
pycompile_dirs="/usr/share/${pkgname}"
do_build() {
sed -i "1s/build Nonea/${version}/" ${wrksrc}/sickbeard/version.py
}
do_install() {
vmkdir usr/share/sickbeard
mv * ${DESTDIR}/usr/share/sickbeard
vsv sickbeard
rm -f ${DESTDIR}/usr/share/sickbeard/init.fedora
rm -f ${DESTDIR}/usr/share/sickbeard/init.freebsd
rm -f ${DESTDIR}/usr/share/sickbeard/init.solaris11
rm -f ${DESTDIR}/usr/share/sickbeard/init.systemd
rm -f ${DESTDIR}/usr/share/sickbeard/init.ubuntu
}