void-packages/srcpkgs/sickbeard/template
2015-11-12 12:08:17 -05:00

31 lines
996 B
Bash

# 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
}