summaryrefslogtreecommitdiffstats
path: root/audio/id3tool/id3tool.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/id3tool/id3tool.SlackBuild')
-rw-r--r--audio/id3tool/id3tool.SlackBuild15
1 files changed, 11 insertions, 4 deletions
diff --git a/audio/id3tool/id3tool.SlackBuild b/audio/id3tool/id3tool.SlackBuild
index ed798cc590..438d2d985a 100644
--- a/audio/id3tool/id3tool.SlackBuild
+++ b/audio/id3tool/id3tool.SlackBuild
@@ -1,9 +1,9 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for id3tool
# Copyright 2012 Markus Hutmacher <email removed>
-# Copyright 2018 B. Watson <yalhcru@gmail.com>
+# Copyright 2018 B. Watson <urchlay@slackware.uk>
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for any purpose
@@ -30,10 +30,13 @@
# - BUILD=2.
# - Simplify script a bit.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=id3tool
VERSION=${VERSION:-1.2a}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -43,7 +46,11 @@ if [ -z "$ARCH" ]; then
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}
@@ -93,4 +100,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