diff options
Diffstat (limited to 'python/python3-jsonschema/python3-jsonschema.SlackBuild')
-rw-r--r-- | python/python3-jsonschema/python3-jsonschema.SlackBuild | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/python/python3-jsonschema/python3-jsonschema.SlackBuild b/python/python3-jsonschema/python3-jsonschema.SlackBuild index 9063513500ac8..4cf1035aff64d 100644 --- a/python/python3-jsonschema/python3-jsonschema.SlackBuild +++ b/python/python3-jsonschema/python3-jsonschema.SlackBuild @@ -2,6 +2,7 @@ # Slackware build script for python3-jsonschema +# Copyright 2022 fourtysixandtwo <fourtysixandtwo@sliderr.net> # Copyright 2019 Benjamin Trigona-Harany <slackbuilds@jaxartes.net> # Based on jsonschema by Dimitris Zlatanidis # All rights reserved. @@ -23,16 +24,17 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20221128 46and2: Updated version, new maintainer. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-jsonschema -VERSION=${VERSION:-3.2.0} +SRCNAM=$(echo $PRGNAM | sed -e "s/python3-//") +VERSION=${VERSION:-4.17.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -SRCNAM=jsonschema - if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i586 ;; @@ -41,9 +43,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 @@ -80,9 +79,10 @@ find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ -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 {} \; -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 |