aboutsummaryrefslogtreecommitdiff
path: root/python/python3-soxr
diff options
context:
space:
mode:
Diffstat (limited to 'python/python3-soxr')
-rw-r--r--python/python3-soxr/python3-soxr.SlackBuild20
-rw-r--r--python/python3-soxr/python3-soxr.info12
2 files changed, 18 insertions, 14 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
diff --git a/python/python3-soxr/python3-soxr.info b/python/python3-soxr/python3-soxr.info
index f230523a35..56c17b88f1 100644
--- a/python/python3-soxr/python3-soxr.info
+++ b/python/python3-soxr/python3-soxr.info
@@ -1,12 +1,12 @@
PRGNAM="python3-soxr"
-VERSION="0.3.7"
+VERSION="0.5.0.post1"
HOMEPAGE="https://github.com/dofuuz/python-soxr/"
-DOWNLOAD="https://github.com/dofuuz/python-soxr/archive/refs/tags/v0.3.7/python-soxr-0.3.7.tar.gz \
- https://github.com/dofuuz/soxr/archive/refs/tags/0.1.3/soxr-0.1.3.tar.gz"
-MD5SUM="32699ee810503b4b0889e08be48843a9 \
- e5e698e1f08971b6544c3639cd0cda4a"
+DOWNLOAD="https://github.com/dofuuz/python-soxr/archive/refs/tags/v0.5.0.post1/python-soxr-0.5.0.post1.tar.gz \
+ https://github.com/dofuuz/soxr/archive/edbdb40/soxr-edbdb4081db14eb21729b57c4f2c813514ad0259.tar.gz"
+MD5SUM="19324df276952c88e47e3fdfe96ba700 \
+ 766a6704052d5f876887002acc1b133b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="python3-numpy"
+REQUIRES="python3-numpy nanobind"
MAINTAINER="Jeremy Hansen"
EMAIL="jebrhansen+SBo@gmail.com"