2014-07-02 12:45:24 +02:00
|
|
|
# Template file for 'sabnzbd'
|
|
|
|
pkgname=sabnzbd
|
2014-07-30 02:31:34 +02:00
|
|
|
version=0.7.18
|
2014-09-16 10:30:48 +02:00
|
|
|
revision=3
|
2014-07-02 12:45:24 +02:00
|
|
|
wrksrc="SABnzbd-${version}"
|
2014-07-30 02:31:34 +02:00
|
|
|
depends="par2cmdline python-cheetah python-configobj python-feedparser python-gntp python-openssl python-yenc unzip"
|
2014-07-02 12:45:24 +02:00
|
|
|
maintainer="Dominik Honnef <dominik@honnef.co>"
|
|
|
|
# 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"
|
|
|
|
homepage="http://sabnzbd.org/"
|
|
|
|
short_desc="SABnzbd is an Open Source Binary Newsreader written in Python"
|
|
|
|
distfiles="http://downloads.sourceforge.net/sabnzbdplus/SABnzbd-${version}-src.tar.gz"
|
2014-07-30 02:31:34 +02:00
|
|
|
checksum=aa05697d901b3e334e92f274b2e8788973059840be656a1545e8f2a4b070b014
|
2014-07-02 12:45:24 +02:00
|
|
|
|
2014-07-02 13:24:29 +02:00
|
|
|
noarch=yes
|
|
|
|
pycompile_dirs="/usr/share/sabnzbd"
|
|
|
|
|
2014-07-02 12:45:24 +02:00
|
|
|
pre_install() {
|
|
|
|
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() {
|
|
|
|
vmkdir usr/share/licenses/${pkgname}
|
|
|
|
mv licenses/* ${DESTDIR}/usr/share/licenses/${pkgname}
|
|
|
|
mv COPYRIGHT.txt ${DESTDIR}/usr/share/licenses/${pkgname}
|
|
|
|
rmdir licenses
|
|
|
|
|
|
|
|
vmkdir usr/share/sabnzbd
|
|
|
|
mv * ${DESTDIR}/usr/share/sabnzbd/
|
|
|
|
|
2014-07-02 13:34:33 +02:00
|
|
|
vinstall ${FILESDIR}/sabnzbd 0755 usr/bin/
|
2014-07-02 12:45:24 +02:00
|
|
|
}
|