void-packages/srcpkgs/sickbeard/template
2019-03-01 12:04:45 -03:00

34 lines
1 KiB
Bash

# Template file for 'sickbeard'
pkgname=sickbeard
version=507
revision=3
archs=noarch
wrksrc="Sick-Beard-build-${version}"
pycompile_dirs="/usr/share/${pkgname}"
depends="python-cheetah"
short_desc="Usenet personal video recorder"
maintainer="Ananteris <ananteris@mailinator.com>"
license="GPL-3"
homepage="http://sickbeard.com"
distfiles="https://github.com/midgetspy/Sick-Beard/archive/build-${version}.tar.gz"
checksum=eaf95ac78e065f6dd8128098158b38674479b721d95d937fe7adb892932e9101
system_accounts="sickbeard"
sickbeard_homedir="/var/lib/sickbeard"
make_dirs="/var/lib/sickbeard 0755 sickbeard sickbeard"
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
}