aboutsummaryrefslogtreecommitdiff
path: root/audio/sonata/sonata.SlackBuild
diff options
context:
space:
mode:
authorAndrew Brouwers <abrouwers@gmail.com>2010-05-13 00:22:07 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:22:07 +0200
commitc46246d1a96c528df5b95a0f70d11e1fe61a96c1 (patch)
tree363d2ecb104f82fa7d4dc69340c25542a4483991 /audio/sonata/sonata.SlackBuild
parente01fa8c30a3d537788433fbf013567ddcd50a4fe (diff)
audio/sonata: Updated for version 1.6.2.1
Diffstat (limited to 'audio/sonata/sonata.SlackBuild')
-rw-r--r--audio/sonata/sonata.SlackBuild20
1 files changed, 10 insertions, 10 deletions
diff --git a/audio/sonata/sonata.SlackBuild b/audio/sonata/sonata.SlackBuild
index 8832f8eb756a..cf6e3559f384 100644
--- a/audio/sonata/sonata.SlackBuild
+++ b/audio/sonata/sonata.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for Sonata
-# Copyright 2008 Andrew Brouwers <abrouwers@gmail.com>
+# Copyright 2008, 2009 Andrew Brouwers <abrouwers@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,10 +22,8 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Modified by Robby Workman <rworkman@slackbuilds.org>
-
PRGNAM=sonata
-VERSION=1.6
+VERSION=1.6.2.1
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG=_SBo}
@@ -37,18 +35,22 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP || exit 1
+cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION || exit 1
+cd $PRGNAM-$VERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -56,9 +58,7 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-python setup.py install --root=$PKG || exit 1
+python setup.py install --root=$PKG
mv $PKG/usr/share/man $PKG/usr/man
gzip -9 $PKG/usr/man/man?/*
@@ -71,4 +71,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}