summaryrefslogtreecommitdiffstats
path: root/audio/butt/butt.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/butt/butt.SlackBuild')
-rw-r--r--audio/butt/butt.SlackBuild29
1 files changed, 19 insertions, 10 deletions
diff --git a/audio/butt/butt.SlackBuild b/audio/butt/butt.SlackBuild
index 8cfe05ed28..2370b5674a 100644
--- a/audio/butt/butt.SlackBuild
+++ b/audio/butt/butt.SlackBuild
@@ -1,7 +1,6 @@
-#!/bin/sh
-
+#!/bin/bash
# Slackware build script for butt
-# Copyright 2013 klaatu klaatu@member.fsf.org
+# Copyright 2013-2022 klaatu | Lawrence NZ | klaatu@member.fsf.org
#
# GNU All Permissive License
# Copying and distribution of this file, with or without modification,
@@ -9,29 +8,39 @@
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=butt
-VERSION=${VERSION:-0.1.15}
+VERSION=${VERSION:-0.1.32}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
PREFIX=${PREFIX:-/usr}
MANDIR=${MANDIR:-$PREFIX/man}
DOCDIR=${DOCDIR:-$PREFIX/doc}
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 the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+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"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
@@ -55,7 +64,7 @@ find . \
-exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS -fpermissive" \
./configure \
--prefix $PREFIX \
--docdir $DOCDIR
@@ -92,4 +101,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