aboutsummaryrefslogtreecommitdiff
path: root/python/python3-soxr
diff options
context:
space:
mode:
Diffstat (limited to 'python/python3-soxr')
-rw-r--r--python/python3-soxr/README3
-rw-r--r--python/python3-soxr/python3-soxr.SlackBuild20
-rw-r--r--python/python3-soxr/python3-soxr.info12
3 files changed, 18 insertions, 17 deletions
diff --git a/python/python3-soxr/README b/python/python3-soxr/README
index 0e67299e12..cd0016b025 100644
--- a/python/python3-soxr/README
+++ b/python/python3-soxr/README
@@ -2,6 +2,3 @@ python3-soxr (Sample-rate conversion library for Python)
High quality, one-dimensional sample-rate conversion library for
Python.
-
-NOTE: Unable to support newer versions due to requiring newer version
-of cython than is available in Slackware 15.0.
diff --git a/python/python3-soxr/python3-soxr.SlackBuild b/python/python3-soxr/python3-soxr.SlackBuild
index 65f3a87a39..45a4ff4036 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:-1.0.0}
+SOXRVER=${SOXRVER:-a66f3ee}
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..3c17ada128 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="1.0.0"
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/v1.0.0/python-soxr-1.0.0.tar.gz \
+ https://github.com/dofuuz/soxr/archive/a66f3ee/soxr-a66f3eeeeb62a32403ff143b756eed92b1ec6b62.tar.gz"
+MD5SUM="0ef46bfbee4a4ac89a0e49e22fbcf2ad \
+ ded376a240eb4957c91527be4f935e5e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="python3-numpy"
+REQUIRES="python3-numpy nanobind"
MAINTAINER="Jeremy Hansen"
EMAIL="jebrhansen+SBo@gmail.com"