void-packages/srcpkgs/sabnzbd/template

42 lines
1.3 KiB
Bash

# Template file for 'sabnzbd'
pkgname=sabnzbd
version=2.3.9
revision=1
archs=noarch
wrksrc="SABnzbd-${version}"
pycompile_dirs="/usr/share/sabnzbd"
depends="par2cmdline python-cheetah python-configobj python-feedparser
python-gntp python-openssl python-yenc unzip"
short_desc="Open Source Binary Newsreader written in Python"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
changelog="https://github.com/sabnzbd/sabnzbd/releases"
homepage="https://sabnzbd.org/"
distfiles="https://github.com/sabnzbd/sabnzbd/releases/download/${version}/SABnzbd-${version}-src.tar.gz"
checksum=f3ab6dffba914e6ddf88f1a755ec3ebaa95f0bdbec6f04b7bf0f90822249bb0c
post_extract() {
rm -rf gntp sabnzbd/utils/{feedparser,configobj}.py
rm -f licenses/License-{feedparser,configobj,gntp,Python}.txt
rm -rf solaris
# sabnzbd bundles a heavily modified version of cherrypy. It's
# uncertain what base version they use, or where each individual
# patch came from, so using upstream cherrypy isn't an option.
# sabnzbd also bundles a variety of small libraries, some of which
# haven't been maintained since 2006. There may be no point to
# packaging them separately.
}
do_install() {
vbin ${FILESDIR}/sabnzbd
vmkdir usr/share/sabnzbd
vcopy "*" usr/share/sabnzbd
for _f in licenses/* COPYRIGHT.txt; do
vlicense ${_f}
done
}