From 58d092aed7d62e275333f497d90863c192c499f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 1 Oct 2020 08:29:28 +0700 Subject: [PATCH 1/2] sabnzbd: update to 3.0.2. --- ...-00-system-configobj-feedparser-gntp.patch | 22 -------------- srcpkgs/sabnzbd/template | 29 +++++++++---------- 2 files changed, 14 insertions(+), 37 deletions(-) delete mode 100644 srcpkgs/sabnzbd/patches/sabnzbd-00-system-configobj-feedparser-gntp.patch diff --git a/srcpkgs/sabnzbd/patches/sabnzbd-00-system-configobj-feedparser-gntp.patch b/srcpkgs/sabnzbd/patches/sabnzbd-00-system-configobj-feedparser-gntp.patch deleted file mode 100644 index e0b1cb98a0b..00000000000 --- a/srcpkgs/sabnzbd/patches/sabnzbd-00-system-configobj-feedparser-gntp.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- sabnzbd/config.py.orig -+++ sabnzbd/config.py -@@ -30,7 +30,7 @@ - from urlparse import urlparse - import sabnzbd.misc - from sabnzbd.constants import CONFIG_VERSION, NORMAL_PRIORITY, DEFAULT_PRIORITY, MAX_WIN_DFOLDER --from sabnzbd.utils import configobj -+import configobj - from sabnzbd.decorators import synchronized - - CONFIG_LOCK = threading.Lock() ---- sabnzbd/rss.py.orig -+++ sabnzbd/rss.py -@@ -35,7 +35,7 @@ - import sabnzbd.emailer as emailer - from sabnzbd.encoding import unicoder, xml_name - --import sabnzbd.utils.feedparser as feedparser -+import feedparser - - __RSS = None # Global pointer to RSS-scanner instance - diff --git a/srcpkgs/sabnzbd/template b/srcpkgs/sabnzbd/template index a45b6535c33..ed3dd23016b 100644 --- a/srcpkgs/sabnzbd/template +++ b/srcpkgs/sabnzbd/template @@ -1,40 +1,39 @@ # Template file for 'sabnzbd' pkgname=sabnzbd -version=2.3.9 +version=3.0.2 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" +hostmakedepends="python3 gettext" +depends="par2cmdline python3-sabyenc3 python3-cheetah3 python3-cryptography + python3-feedparser python3-configobj python3-CherryPy + python3-portend python3-chardet python3-notify2 unzip" short_desc="Open Source Binary Newsreader written in Python" maintainer="Orphaned " -license="GPL-2.0-or-later" +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=f3ab6dffba914e6ddf88f1a755ec3ebaa95f0bdbec6f04b7bf0f90822249bb0c -python_version=2 #unverified +checksum=c93f95d9193061ba653c2ab592704c7a8e9b6146817f80e4e2420b3f74b976b2 +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 +} - # 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_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} From e5f3e8ee6555f954b4d08e4d2abf80103a1ef5ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 1 Oct 2020 08:29:38 +0700 Subject: [PATCH 2/2] New package: python3-sabyenc3-4.0.2 --- srcpkgs/python3-sabyenc3/template | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 srcpkgs/python3-sabyenc3/template diff --git a/srcpkgs/python3-sabyenc3/template b/srcpkgs/python3-sabyenc3/template new file mode 100644 index 00000000000..7df3ac9bdb0 --- /dev/null +++ b/srcpkgs/python3-sabyenc3/template @@ -0,0 +1,15 @@ +# Template file for 'python3-sabyenc3' +pkgname=python3-sabyenc3 +version=4.0.2 +revision=1 +wrksrc=sabyenc3-$version +build_style=python3-module +hostmakedepends="python3-setuptools" +makedepends="python3-devel" +depends="python3" +short_desc="SABYEnc - yEnc Decoding for Python 3" +maintainer="Đoàn Trần Công Danh " +license="LGPL-3.0-or-later" +homepage="https://github.com/sabnzbd/sabyenc/" +distfiles="$PYPI_SITE/s/sabyenc3/sabyenc3-$version.tar.gz" +checksum=dfaa0bdd01752a9cfde0d349a8f4e178b04b1cf9c1bc018b287961192cd2bb90