summaryrefslogtreecommitdiffstats
path: root/network/flexget
diff options
context:
space:
mode:
author fourtysixandtwo2023-09-26 00:57:06 +0200
committer Willy Sudiarto Raharjo2023-09-30 06:16:32 +0200
commit7048ab9705d8ea95114fae91254d5e89673942ee (patch)
tree755237a77c87f9b0fafe2631187444e95910d93c /network/flexget
parent34e9c8dc271a3bbfbaf9aeb7fd69d64a4c840a56 (diff)
downloadslackbuilds-7048ab9705d8ea95114fae91254d5e89673942ee.tar.gz
network/flexget: Updated for version 3.9.10, deps, and various fixes.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/flexget')
-rw-r--r--network/flexget/flexget.SlackBuild24
-rw-r--r--network/flexget/flexget.info8
2 files changed, 17 insertions, 15 deletions
diff --git a/network/flexget/flexget.SlackBuild b/network/flexget/flexget.SlackBuild
index 58f86d2880..d224ea58f8 100644
--- a/network/flexget/flexget.SlackBuild
+++ b/network/flexget/flexget.SlackBuild
@@ -5,7 +5,7 @@
# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST
# Copyright 2009-2010 Eric Hameleers, Eindhoven, Netherlands
# Copyright 2014-2017 Dimitris Zlatanidis Orestiada, Greece
-# Copyright 2022 fourtysixandtwo <fourtysixandtwo@sliderr.net>
+# Copyright 2022-23 fourtysixandtwo <fourtysixandtwo@sliderr.net>
# Written by Lionel Young <redtricycle@gmail.com>
#
# All rights reserved.
@@ -30,12 +30,13 @@
# 20220515 46and2: Updated version, removed python2, New maintainer.
# 20220908 46and2: Updated version.
# -build process changed to fix issue with versions >3.3.20.
+# 20230915 46and2: Updated version, deps, various fixes.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=flexget
SRCNAM=FlexGet
-VERSION=${VERSION:-3.4.2}
+VERSION=${VERSION:-3.9.10}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -48,9 +49,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -69,6 +67,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+elif [ "$ARCH" = "aarch64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
@@ -85,20 +86,21 @@ cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -o -perm 511 \) -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
# Remove versions from requirements
sed -i "s/==.*//" requirements.txt
+# remove modules already included in python3.9 or win32
+sed -i -E -e '/^(backports-zoneinfo|pkgutil-resolve-name)/d' \
+ -e '/^(pywin32|win32-setctime)/d' requirements.txt
+
+export PYTHONPATH=/opt/python3.9/site-packages/
python3 -m build --no-isolation
python3 -m installer -d "$PKG" dist/*.whl
-# installing tests to a subdir of your project might not conflict the toplevel, but
-# don't do it anyway...
-rm -r "$PKG"/usr/lib${LIBDIRSUFFIX}/python*/site-packages/${SRCNAM,,}/tests/
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a LICENSE README.rst PKG-INFO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/network/flexget/flexget.info b/network/flexget/flexget.info
index 17f07194c6..3a143179d1 100644
--- a/network/flexget/flexget.info
+++ b/network/flexget/flexget.info
@@ -1,10 +1,10 @@
PRGNAM="flexget"
-VERSION="3.4.2"
+VERSION="3.9.10"
HOMEPAGE="https://flexget.com/"
-DOWNLOAD="https://files.pythonhosted.org/packages/source/f/flexget/FlexGet-3.4.2.tar.gz"
-MD5SUM="5fd0409d95c7316702c1bc36d1b5dc6e"
+DOWNLOAD="https://files.pythonhosted.org/packages/source/f/flexget/FlexGet-3.9.10.tar.gz"
+MD5SUM="e9571a9fc59033a3033d60f2d22f6160"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="feedparser SQLAlchemy BeautifulSoup4 html5lib python3-PyRSS2Gen python3-pynzb python3-rpyc python3-guessit python3-APScheduler python3-CherryPy python3-Flask-RESTful python3-Flask-RESTX python3-Flask-Compress python3-Flask-Login python3-Flask-Cors python3-zxcvbn-python python3-rich pytz-deprecation-shim python3-loguru tzdata python3-psutil colorama"
+REQUIRES="feedparser SQLAlchemy BeautifulSoup4 html5lib python3-PyRSS2Gen python3-pynzb python3-rpyc python3-guessit python3-APScheduler python3-CherryPy python3-Flask-RESTful python3-Flask-RESTX python3-Flask-Compress python3-Flask-Login python3-Flask-Cors python3-zxcvbn python3-rich pytz-deprecation-shim python3-loguru tzdata python3-psutil colorama CommonMark python3-setuptools-opt importlib-resources python3-brotlicffi"
MAINTAINER="fourtysixandtwo"
EMAIL="fourtysixandtwo@sliderr.net"