diff options
author | fourtysixandtwo <fourtysixandtwo@sliderr.net> | 2023-12-22 20:34:56 -0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-12-30 07:33:34 +0700 |
commit | 05cc0495e97929a3555f9a7d542f2c110a21ffc7 (patch) | |
tree | 00ca5a62c5be0f915b8cd7cf5b7c5bd5205a0740 /python/python3-setuptools-scm-opt/python3-setuptools-scm-opt.SlackBuild | |
parent | 175dd6f8ecc541fd5c079df93b311cef1c60557d (diff) |
python/python3-setuptools-scm-opt: Updated for version 8.0.2.
Diffstat (limited to 'python/python3-setuptools-scm-opt/python3-setuptools-scm-opt.SlackBuild')
-rw-r--r-- | python/python3-setuptools-scm-opt/python3-setuptools-scm-opt.SlackBuild | 26 |
1 files changed, 6 insertions, 20 deletions
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 |