summaryrefslogtreecommitdiffstats
path: root/audio/icecast/icecast.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/icecast/icecast.SlackBuild')
-rw-r--r--audio/icecast/icecast.SlackBuild22
1 files changed, 15 insertions, 7 deletions
diff --git a/audio/icecast/icecast.SlackBuild b/audio/icecast/icecast.SlackBuild
index 576dcdb5b7..471ccd5656 100644
--- a/audio/icecast/icecast.SlackBuild
+++ b/audio/icecast/icecast.SlackBuild
@@ -1,9 +1,10 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for "icecast".
# Copyright -2014 Rodney Cobb <rdc@ktabic.co.uk>
# Copyright 2014-2016 Marcel Saegebarth <marc@mos6581.de>
+# Copyright 2023 S. S. Bolokanar, Bulgaria <bolokanar@bulgars.org>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -25,26 +26,33 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=icecast
-VERSION=${VERSION:-2.4.3}
+VERSION=${VERSION:-2.4.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
-CWD=$(pwd)
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
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"
@@ -100,4 +108,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.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE