aboutsummaryrefslogtreecommitdiff
path: root/audio/streamtuner/streamtuner.SlackBuild
diff options
context:
space:
mode:
authorFrank Caraballo <fecaraballo{at}gmail{dot}com>2010-05-12 17:37:26 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-12 17:37:26 +0200
commitbc0edcb143409ee0e8d30e12c6f4997394aaf658 (patch)
treee237983ae5e0122836d1b96bc81fc28a021347ef /audio/streamtuner/streamtuner.SlackBuild
parentcb312eb58ebb7376ff25f0f8d44dadb9a8ad60db (diff)
audio/streamtuner: Updated for version 0.99.99
Diffstat (limited to 'audio/streamtuner/streamtuner.SlackBuild')
-rw-r--r--audio/streamtuner/streamtuner.SlackBuild43
1 files changed, 27 insertions, 16 deletions
diff --git a/audio/streamtuner/streamtuner.SlackBuild b/audio/streamtuner/streamtuner.SlackBuild
index 58b99b4fc15ff..465004b8769f9 100644
--- a/audio/streamtuner/streamtuner.SlackBuild
+++ b/audio/streamtuner/streamtuner.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for streamtuner
-# Copyright 2007 Frank Caraballo <fecaraballo[AT]gmail.com
+# Copyright 2007, 2008 Frank Caraballo <fecaraballo{at}gmail{dot}com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,61 +22,72 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Modified by the SlackBuilds.org project
-
PRGNAM=streamtuner
-VERSION=0.99.99
+VERSION=${VERSION:-0.99.99}
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-PDOCS="AUTHORS COPYING INSTALL NEWS README TODO"
-
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.* || exit 1
+tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* || exit 1
cd $PRGNAM-$VERSION || exit 1
chown -R root:root .
-chmod -R u+w,go+r-w,a-s .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
-# Apply streamtuner-0.99.99-live365.diff patch:
+# Apply official streamtuner-0.99.99-live365.diff patch:
patch -p0 < $CWD/$PRGNAM-$VERSION-live365.diff || exit 1
+# Apply unofficial shoutcast-redesign-patch.diff patch from
+# 'http://bugs.archlinux.org/task/11463':
+( cd /src/plugins/shoutcast
+ patch -p1 < $CWD/shoutcast-redesign-patch.diff || exit 1
+)
+
+# This program will not build unless static is enabled.
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
+ --enable-static=yes \
+ --build=$ARCH-slackware-linux \
|| exit 1
make || exit 1
make install-strip DESTDIR=$PKG || exit 1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a $PDOCS $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING INSTALL NEWS README TODO \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-
-# Create link to html docs:
( cd $PKG/usr/doc/$PRGNAM-$VERSION
- ln -s /usr/share/gtk-doc/html/$PRGNAM html
+ ln -s ../../share/gtk-doc/html/streamtuner/ html
)
mkdir -p $PKG/install
-cat $CWD/doinst.sh > $PKG/install/doinst.sh
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz