43 lines
1.4 KiB
Bash
43 lines
1.4 KiB
Bash
# Template file for 'sabnzbd'
|
|
pkgname=sabnzbd
|
|
version=1.0.3
|
|
revision=1
|
|
wrksrc="SABnzbd-${version}"
|
|
depends="par2cmdline python-cheetah python-configobj python-feedparser
|
|
python-gntp python-openssl python-yenc unzip"
|
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
|
# sabnzbd itself is GPL, but it bundles libraries that are covered by
|
|
# BSD, LGPL-2 and MIT. In combination, that makes this package GPL.
|
|
license="GPL-2"
|
|
homepage="http://sabnzbd.org/"
|
|
short_desc="SABnzbd is an Open Source Binary Newsreader written in Python"
|
|
distfiles="https://github.com/sabnzbd/sabnzbd/releases/download/${version}/SABnzbd-${version}-src.tar.gz"
|
|
checksum=cf87d3f17fc03e8b3a4b3010261115c2ad7e2f773b5ede95a80025b340dbbd35
|
|
|
|
noarch=yes
|
|
pycompile_dirs="/usr/share/sabnzbd"
|
|
|
|
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
|
|
}
|