diff options
| author | Jeremy Hansen <jebrhansen+github@gmail.com> | 2025-09-05 09:23:38 -0700 |
|---|---|---|
| committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2025-09-06 07:24:08 +0700 |
| commit | 2bc9b00288ec78c587974d9503d3f0472d6d8afd (patch) | |
| tree | 81ddd17de210314283197bfa393058c7dd473faa /python/python3-soxr/python3-soxr.SlackBuild | |
| parent | b7b46d3becfd2a9e28ed814a5be9a86a5ec54ffd (diff) | |
python/python3-soxr: Version bump to 0.5.0.post1
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python3-soxr/python3-soxr.SlackBuild')
| -rw-r--r-- | python/python3-soxr/python3-soxr.SlackBuild | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/python/python3-soxr/python3-soxr.SlackBuild b/python/python3-soxr/python3-soxr.SlackBuild index 65f3a87a39..5ca67ccc6a 100644 --- a/python/python3-soxr/python3-soxr.SlackBuild +++ b/python/python3-soxr/python3-soxr.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for python3-soxr -# Copyright 2023 Jeremy Hansen jebrhansen+SBo@gmail.com +# Copyright 2023-2025 Jeremy Hansen jebrhansen+SBo@gmail.com # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,8 +24,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-soxr -VERSION=${VERSION:-0.3.7} -SOXRVER=${SOXRVER:-0.1.3} +VERSION=${VERSION:-0.5.0.post1} +SOXRVER=${SOXRVER:-edbdb40} SRCNAM=${SRCNAM:-python-soxr} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -55,9 +55,9 @@ mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $SRCNAM-$VERSION tar xvf $CWD/$SRCNAM-$VERSION.tar.gz -tar xvf $CWD/soxr-$SOXRVER.tar.gz +tar xvf $CWD/soxr-$SOXRVER*.tar.gz rmdir $SRCNAM-$VERSION/libsoxr -mv soxr-$SOXRVER $SRCNAM-$VERSION/libsoxr +mv soxr-$SOXRVER* $SRCNAM-$VERSION/libsoxr cd $SRCNAM-$VERSION chown -R root:root . find -L . \ @@ -68,10 +68,14 @@ find -L . \ export SETUPTOOLS_SCM_PRETEND_VERSION=$VERSION -# Correct naming or packaging issue -sed -i 's|/_csoxr|/csoxr|g' setup.py +PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])') +export PYTHONPATH=/opt/python$PYVER/site-packages -python3 setup.py install --root=$PKG +# Complains about missing this file, so rename the .in file +mv src/csoxr_ver_vcs.cpp.in src/csoxr_ver_vcs.cpp + +python3 -m build --wheel --no-isolation +python3 -m installer --destdir "$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 |
