summaryrefslogtreecommitdiffstats
path: root/audio/clam
diff options
context:
space:
mode:
Diffstat (limited to 'audio/clam')
-rw-r--r--audio/clam/clam.SlackBuild16
-rw-r--r--audio/clam/clam.info2
2 files changed, 14 insertions, 4 deletions
diff --git a/audio/clam/clam.SlackBuild b/audio/clam/clam.SlackBuild
index 44f7436870..50d92ce3a4 100644
--- a/audio/clam/clam.SlackBuild
+++ b/audio/clam/clam.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for clam
@@ -6,10 +6,13 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=clam
VERSION=${VERSION:-r15456}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
SRCNAM=CLAM
@@ -21,7 +24,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
OUTPUT=${OUTPUT:-/tmp}
@@ -102,4 +112,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
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
diff --git a/audio/clam/clam.info b/audio/clam/clam.info
index a791421d81..2bfed49018 100644
--- a/audio/clam/clam.info
+++ b/audio/clam/clam.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://slackware.uk/~urchlay/src/CLAM-r15456.tar.xz"
MD5SUM="c54caaa742960c015dc4783935ddc8d5"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="id3lib jack ladspa_sdk lv2 portaudio xerces-c"
+REQUIRES="jack ladspa_sdk lv2 portaudio xerces-c"
MAINTAINER="B. Watson"
EMAIL="yalhcru@gmail.com"