aboutsummaryrefslogtreecommitdiff
path: root/python/python3-setuptools-git-versioning/python3-setuptools-git-versioning.SlackBuild
diff options
context:
space:
mode:
authorfourtysixandtwo <fourtysixandtwo@sliderr.net>2024-11-19 12:36:56 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-11-23 10:50:40 +0700
commitd46e0c7a62e38447c095b16de851555eeaf4b3c9 (patch)
tree03048418c8c55e02bf6815b519f6470a98ba4be3 /python/python3-setuptools-git-versioning/python3-setuptools-git-versioning.SlackBuild
parentac2cf15e419f003602992e675341eb8d2f247855 (diff)
python/python3-setuptools-git-versioning: Updated for version 2.0.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python3-setuptools-git-versioning/python3-setuptools-git-versioning.SlackBuild')
-rw-r--r--python/python3-setuptools-git-versioning/python3-setuptools-git-versioning.SlackBuild35
1 files changed, 10 insertions, 25 deletions
diff --git a/python/python3-setuptools-git-versioning/python3-setuptools-git-versioning.SlackBuild b/python/python3-setuptools-git-versioning/python3-setuptools-git-versioning.SlackBuild
index f7883a9169..e8ed6ee0bf 100644
--- a/python/python3-setuptools-git-versioning/python3-setuptools-git-versioning.SlackBuild
+++ b/python/python3-setuptools-git-versioning/python3-setuptools-git-versioning.SlackBuild
@@ -26,7 +26,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-setuptools-git-versioning
-VERSION=${VERSION:-1.13.6}
+SRCNAM=setuptools-git-versioning
+VERSION=${VERSION:-2.0.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -48,45 +49,29 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
-elif [ "$ARCH" = "aarch64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
-else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
-fi
-
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf ${PRGNAM:8}-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/${PRGNAM:8}-$VERSION.tar.gz
-cd ${PRGNAM:8}-$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 {} \+
-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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a CHANGELOG.* README.* $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSE PKG-INFO README.* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install