From 05cc0495e97929a3555f9a7d542f2c110a21ffc7 Mon Sep 17 00:00:00 2001 From: fourtysixandtwo Date: Fri, 22 Dec 2023 20:34:56 -0700 Subject: python/python3-setuptools-scm-opt: Updated for version 8.0.2. --- .../python3-setuptools-scm-opt.SlackBuild | 26 +++++----------------- 1 file changed, 6 insertions(+), 20 deletions(-) (limited to 'python/python3-setuptools-scm-opt/python3-setuptools-scm-opt.SlackBuild') diff --git a/python/python3-setuptools-scm-opt/python3-setuptools-scm-opt.SlackBuild b/python/python3-setuptools-scm-opt/python3-setuptools-scm-opt.SlackBuild index 4336be1001..242de21c16 100644 --- a/python/python3-setuptools-scm-opt/python3-setuptools-scm-opt.SlackBuild +++ b/python/python3-setuptools-scm-opt/python3-setuptools-scm-opt.SlackBuild @@ -25,12 +25,15 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-setuptools-scm-opt -SRCNAM=setuptools_scm -VERSION=${VERSION:-7.1.0} +SRCNAM=setuptools-scm +VERSION=${VERSION:-8.0.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} +# set noarch because installing to /opt +ARCH=noarch + if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i586 ;; @@ -48,23 +51,6 @@ 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 @@ -98,7 +84,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 CHANGELOG.rst LICENSE README.rst PKG-INFO $PKG/usr/doc/$PRGNAM-$VERSION +cp -a CHANGELOG.rst LICENSE README.md PKG-INFO $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install -- cgit v1.2.3