Browse Source

python/sounddevice: Updated for version 0.5.2.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
pull/329/head
Vijay Marcel 3 weeks ago
committed by Willy Sudiarto Raharjo
parent
commit
03a707b9c5
No known key found for this signature in database GPG Key ID: 3F617144D7238786
  1. 30
      python/sounddevice/sounddevice.SlackBuild
  2. 6
      python/sounddevice/sounddevice.info

30
python/sounddevice/sounddevice.SlackBuild

@ -2,7 +2,7 @@
# Slackware build script for sounddevice
# Copyright 2022 Vijay Marcel
# Copyright 2022-2025 Vijay Marcel
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -25,10 +25,11 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=sounddevice
VERSION=${VERSION:-0.4.5}
VERSION=${VERSION:-0.5.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
SRCNAM=${SRCNAM:-python-sounddevice}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@ -38,9 +39,6 @@ if [ -z "$ARCH" ]; then
esac
fi
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@ -51,13 +49,13 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
SLKCFLAGS="-march=i586 -mtune=i686 -pipe -O2 -fPIC"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
SLKCFLAGS="-march=i686 -mtune=i686 -pipe -O2 -fPIC"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
SLKCFLAGS="-march=x86-64 -mtune=generic -pipe -O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
@ -70,23 +68,23 @@ trap 'echo "$0 FAILED at line $LINENO!" | tee -a $OUTPUT/error-${PRGNAM}.log' ER
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
-o -perm 511 \) -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
python3 setup.py install --prefix=/usr --root=$PKG --optimize=1
CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" python3 setup.py install --prefix=/usr --root=$PKG --optimize=1
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
| cut -f 1 -d : | xargs strip --strip-unneeded --remove-section=.comment --remove-section=.note 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a LICENSE README.rst CONTRIBUTING.rst NEWS.rst PKG-INFO $PKG/usr/doc/$PRGNAM-$VERSION
cp -a LICENSE README.rst $PKG/usr/doc/$PRGNAM-$VERSION
cp -r doc examples $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

6
python/sounddevice/sounddevice.info

@ -1,8 +1,8 @@
PRGNAM="sounddevice"
VERSION="0.4.5"
VERSION="0.5.2"
HOMEPAGE="https://github.com/spatialaudio/python-sounddevice/"
DOWNLOAD="https://pypi.io/packages/source/s/sounddevice/sounddevice-0.4.5.tar.gz"
MD5SUM="c69ca6a509d0f57a4d446a7639edfe6a"
DOWNLOAD="https://github.com/spatialaudio/python-sounddevice/archive/0.5.2/python-sounddevice-0.5.2.tar.gz"
MD5SUM="bcdf331a93c27bdc8a5d1fb56b6d52e0"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="portaudio cffi"

Loading…
Cancel
Save