diff options
author | fourtysixandtwo <fourtysixandtwo@sliderr.net> | 2023-09-14 16:55:40 -0600 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-09-17 00:10:34 +0700 |
commit | c447f6e61680073e3b752b4e29c1f2dc2ff577d7 (patch) | |
tree | 528e1f30d7754d227ba8466579750dee6052bae4 /python/Flask/Flask.SlackBuild | |
parent | e9bb2d5d02ec54f6d945b9930b1f8f7abdd7f88c (diff) |
python/Flask: Updated for version 2.3.3.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/Flask/Flask.SlackBuild')
-rw-r--r-- | python/Flask/Flask.SlackBuild | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/python/Flask/Flask.SlackBuild b/python/Flask/Flask.SlackBuild index 25a68fd4711a..1d3db50a8087 100644 --- a/python/Flask/Flask.SlackBuild +++ b/python/Flask/Flask.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for Flask -# Copyright 2022 fourtysixandtwo <fourtysixandtwo@sliderr.net> +# Copyright 2022-23 fourtysixandtwo <fourtysixandtwo@sliderr.net> # Copyright 2014-2021 Dimitris Zlatanidis Orestiada, Greece # All rights reserved. # @@ -25,11 +25,13 @@ # 20220512 46and2: Updated version, new maintainer. # - Fix REQUIRES +# 20230914 46and2: Updated version, change build process. cd $(dirname $0) ; CWD=$(pwd) PRGNAM=Flask -VERSION=${VERSION:-2.1.2} +SRCNAM=flask +VERSION=${VERSION:-2.3.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -42,9 +44,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 @@ -63,6 +62,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="" @@ -73,17 +75,21 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +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 {} \+ + +# relax version required +sed -i '/Jinja/ s/3\.1\.2/3.0.3/' pyproject.toml -python3 setup.py install --root=$PKG +python3 -m build --no-isolation +python3 -m installer -d "$PKG" dist/*.whl find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |