aboutsummaryrefslogtreecommitdiff
path: root/audio/python-audiotools/python-audiotools.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/python-audiotools/python-audiotools.SlackBuild')
-rw-r--r--audio/python-audiotools/python-audiotools.SlackBuild15
1 files changed, 7 insertions, 8 deletions
diff --git a/audio/python-audiotools/python-audiotools.SlackBuild b/audio/python-audiotools/python-audiotools.SlackBuild
index 275d3a66d0e1..d5c3532c25b4 100644
--- a/audio/python-audiotools/python-audiotools.SlackBuild
+++ b/audio/python-audiotools/python-audiotools.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for Python Audio Tools
# Home Page: http://audiotools.sourceforge.net/
-# Copyright (c) 2010-2014, Nishant Limbachia, Hoffman Estates, IL, USA
+# Copyright (c) 2010-2016, Nishant Limbachia, Hoffman Estates, IL, USA
# <nishant _AT_ mnspace _DOT_ net>
# All rights reserved.
@@ -26,15 +26,15 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM="python-audiotools"
-VERSION=${VERSION:-2.22}
+VERSION=${VERSION:-3.1.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-SRCNAM="$(printf $PRGNAM | cut -f2 -d-)"
+SRCNAM="audiotools"
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -45,8 +45,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -73,8 +73,7 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Fix for libcdio-0.9 and libcdio-paranoia-10.2+0.93 (-current)
-sed -i -e 's:#include <cdio/:#include <cdio/paranoia/:' src/cdiomodule.h
+( cd src; patch -p0 < $CWD/patches/cdiomodule_header.patch )
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \