From 7107db4e22760ddc9c3c0c04f957034dc961c2c5 Mon Sep 17 00:00:00 2001 From: isaackwy Date: Sun, 14 Jan 2024 19:45:25 -0800 Subject: python/jsonpatch: Update for 1.33 (+new maintainer) Signed-off-by: Willy Sudiarto Raharjo --- python/jsonpatch/jsonpatch.SlackBuild | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'python/jsonpatch/jsonpatch.SlackBuild') diff --git a/python/jsonpatch/jsonpatch.SlackBuild b/python/jsonpatch/jsonpatch.SlackBuild index 4bcdb54f16..6c7da5a7ca 100644 --- a/python/jsonpatch/jsonpatch.SlackBuild +++ b/python/jsonpatch/jsonpatch.SlackBuild @@ -2,7 +2,8 @@ # Slackware build script for jsonpatch -# Copyright 2020 Alan Aversa +# Copyright 2020 Alan Aversa +# Copyright 2024 Isaac Yu # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,10 +26,11 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=jsonpatch -VERSION=${VERSION:-1.25} +VERSION=${VERSION:-1.33} BUILD=${BUILD:-1} -TAG=${TAG:-_SBo} +TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} + if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i586 ;; @@ -37,9 +39,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 @@ -47,7 +46,8 @@ fi TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} +OUTPUT=${OUTPUT:-/tmp} + if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" @@ -83,6 +83,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install -- cgit v1.2.3