diff options
Diffstat (limited to 'network/flexget/flexget.SlackBuild')
-rw-r--r-- | network/flexget/flexget.SlackBuild | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/network/flexget/flexget.SlackBuild b/network/flexget/flexget.SlackBuild index 58f86d288034d..d224ea58f8d08 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 |