43 lines
1.3 KiB
Bash
43 lines
1.3 KiB
Bash
# Template file for 'sabnzbd'
|
|
pkgname=sabnzbd
|
|
version=4.3.3
|
|
revision=2
|
|
pycompile_dirs="/usr/share/sabnzbd"
|
|
hostmakedepends="python3 gettext"
|
|
depends="par2cmdline python3-cheetah3 python3-cryptography
|
|
python3-feedparser python3-configobj python3-CherryPy python3-Cheroot
|
|
python3-portend python3-chardet python3-notify2 python3-guessit
|
|
python3-puremagic python3-pysocks python3-apprise python3-sabctools unzip"
|
|
short_desc="Open Source Binary Newsreader written in Python"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later, custom:Bundled"
|
|
homepage="https://sabnzbd.org/"
|
|
changelog="https://github.com/sabnzbd/sabnzbd/releases"
|
|
distfiles="https://github.com/sabnzbd/sabnzbd/releases/download/${version}/SABnzbd-${version}-src.tar.gz"
|
|
checksum=3f787e9734e22bc69f6c160949d93bfd5ef824fe72b74a50eac356ec2262345f
|
|
python_version=3
|
|
|
|
post_extract() {
|
|
rm -rf gntp sabnzbd/utils/{feedparser,configobj}.py
|
|
rm -f licenses/License-{feedparser,configobj,gntp,Python}.txt
|
|
rm -rf solaris
|
|
}
|
|
|
|
do_build() {
|
|
python3 tools/make_mo.py
|
|
}
|
|
|
|
do_install() {
|
|
vbin ${FILESDIR}/sabnzbd
|
|
vmkdir usr/share/sabnzbd
|
|
vcopy "*" usr/share/sabnzbd
|
|
rm -rf $DESTDIR/usr/share/sabnzbd/po
|
|
rm -rf $DESTDIR/usr/share/sabnzbd/tools
|
|
rm -rf $DESTDIR/usr/share/sabnzbd/tests
|
|
|
|
for _f in licenses/* COPYRIGHT.txt; do
|
|
vlicense ${_f}
|
|
done
|
|
vdoc "${FILESDIR}/README.voidlinux"
|
|
}
|