diff options
author | fourtysixandtwo <fourtysixandtwo@sliderr.net> | 2024-11-19 12:36:56 -0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-11-23 10:50:40 +0700 |
commit | d46e0c7a62e38447c095b16de851555eeaf4b3c9 (patch) | |
tree | 03048418c8c55e02bf6815b519f6470a98ba4be3 /python/python3-setuptools-git-versioning | |
parent | ac2cf15e419f003602992e675341eb8d2f247855 (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')
-rw-r--r-- | python/python3-setuptools-git-versioning/python3-setuptools-git-versioning.SlackBuild | 35 | ||||
-rw-r--r-- | python/python3-setuptools-git-versioning/python3-setuptools-git-versioning.info | 8 |
2 files changed, 14 insertions, 29 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 diff --git a/python/python3-setuptools-git-versioning/python3-setuptools-git-versioning.info b/python/python3-setuptools-git-versioning/python3-setuptools-git-versioning.info index 6491469e55..844a68bfbc 100644 --- a/python/python3-setuptools-git-versioning/python3-setuptools-git-versioning.info +++ b/python/python3-setuptools-git-versioning/python3-setuptools-git-versioning.info @@ -1,10 +1,10 @@ PRGNAM="python3-setuptools-git-versioning" -VERSION="1.13.6" +VERSION="2.0.0" HOMEPAGE="https://setuptools-git-versioning.readthedocs.io" -DOWNLOAD="https://github.com/dolfinus/setuptools-git-versioning/archive/v1.13.6/python3-setuptools-git-versioning-1.13.6.tar.gz" -MD5SUM="40876457065d24ff4a048a4e1b6da912" +DOWNLOAD="https://files.pythonhosted.org/packages/source/s/setuptools-git-versioning/setuptools-git-versioning-2.0.0.tar.gz" +MD5SUM="9b8bbc38938f700595c2b00fae73637f" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="python3-toml" +REQUIRES="python3-build python3-wheel python3-toml" MAINTAINER="fourtysixandtwo" EMAIL="fourtysixandtwo@sliderr.net" |