summaryrefslogtreecommitdiffstats
path: root/audio/tagtool
diff options
context:
space:
mode:
Diffstat (limited to 'audio/tagtool')
-rw-r--r--audio/tagtool/tagtool.SlackBuild16
-rw-r--r--audio/tagtool/tagtool.info2
2 files changed, 14 insertions, 4 deletions
diff --git a/audio/tagtool/tagtool.SlackBuild b/audio/tagtool/tagtool.SlackBuild
index ac293abe4e..557c4b5d70 100644
--- a/audio/tagtool/tagtool.SlackBuild
+++ b/audio/tagtool/tagtool.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for tagtool
# Written by scion (grbzks@gmail.com)
@@ -23,10 +23,13 @@
# with this program (most likely, a file named COPYING). If not, see
# <http://www.gnu.org/licenses/>.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=tagtool
VERSION=${VERSION:-0.12.3}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -36,7 +39,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}
@@ -94,4 +104,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
diff --git a/audio/tagtool/tagtool.info b/audio/tagtool/tagtool.info
index 5b9bba253d..d37d9c3511 100644
--- a/audio/tagtool/tagtool.info
+++ b/audio/tagtool/tagtool.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://downloads.sourceforge.net/tagtool/tagtool-0.12.3.tar.bz2"
MD5SUM="447b3a505fee68a82f25dcda9377b676"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="id3lib"
+REQUIRES=""
MAINTAINER="Jeremy Hansen"
EMAIL="jebrhansen+SBo@gmail.com"