summaryrefslogtreecommitdiffstats
path: root/audio/TiMidity++
diff options
context:
space:
mode:
Diffstat (limited to 'audio/TiMidity++')
-rw-r--r--audio/TiMidity++/README2
-rw-r--r--audio/TiMidity++/TiMidity++.SlackBuild16
2 files changed, 14 insertions, 4 deletions
diff --git a/audio/TiMidity++/README b/audio/TiMidity++/README
index bced4e92f1..2f39c4cf11 100644
--- a/audio/TiMidity++/README
+++ b/audio/TiMidity++/README
@@ -8,7 +8,7 @@ this, make /etc/rc.d/rc.timidity executable and add this line to
/etc/rc.d/rc.timidity start
-Optional dependencies are jack, speex, and portaudio.
+Optional dependencies are jack and portaudio.
You will need a set of instrument patch files or soundbank fonts
for TiMidity++ to be of any use. Install freepats, eawpats,
diff --git a/audio/TiMidity++/TiMidity++.SlackBuild b/audio/TiMidity++/TiMidity++.SlackBuild
index 78f9906e49..024d1df6f7 100644
--- a/audio/TiMidity++/TiMidity++.SlackBuild
+++ b/audio/TiMidity++/TiMidity++.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for TiMidity++
@@ -25,10 +25,13 @@
# 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=TiMidity++
VERSION=${VERSION:-2.15.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$(uname -m)" in
@@ -38,7 +41,14 @@ if [ -z "$ARCH" ]; then
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-$VERSION
OUTPUT=${OUTPUT:-/tmp}
@@ -150,4 +160,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