aboutsummaryrefslogtreecommitdiff
path: root/audio/streamripper/streamripper.SlackBuild
diff options
context:
space:
mode:
authorFrank Caraballo <fecaraballo{at}gmail{dot}com>2010-05-12 17:37:25 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-12 17:37:25 +0200
commitcb312eb58ebb7376ff25f0f8d44dadb9a8ad60db (patch)
tree847b1a7890142a532dac37aac1986c968a6ecb48 /audio/streamripper/streamripper.SlackBuild
parent3e89c71b0701660bab4d017668536fcb4b19d06b (diff)
audio/streamripper: Updated for version 1.64.6
Diffstat (limited to 'audio/streamripper/streamripper.SlackBuild')
-rw-r--r--audio/streamripper/streamripper.SlackBuild20
1 files changed, 8 insertions, 12 deletions
diff --git a/audio/streamripper/streamripper.SlackBuild b/audio/streamripper/streamripper.SlackBuild
index 0a76f4d31e2d..d29f65d91c90 100644
--- a/audio/streamripper/streamripper.SlackBuild
+++ b/audio/streamripper/streamripper.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for Streamripper
-# Copyright 2007-2008 Frank Caraballo <fecaraballo{at}gmail{dot}com>
+# Copyright 2007-2009 Frank Caraballo <fecaraballo{at}gmail{dot}com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=streamripper
-VERSION=1.62.3
+VERSION=${VERSION:-1.64.6}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -33,21 +33,20 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-DOCS="CHANGES COPYING INSTALL README THANKS"
-
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP || exit 1
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
+tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* || exit 1
cd $PRGNAM-$VERSION || exit 1
-
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -61,12 +60,9 @@ CFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
- --program-prefix="" \
- --program-suffix="" \
+ --build=$ARCH-slackware-linux \
|| exit 1
-# --with-included-tre \ # Use the TRE library included with Streamripper
-
make || exit 1
make install-strip DESTDIR=$PKG || exit 1
@@ -76,9 +72,9 @@ make install-strip DESTDIR=$PKG || exit 1
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a CHANGES COPYING INSTALL README THANKS \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc