aboutsummaryrefslogtreecommitdiff
path: root/desktop/xmms-skins-ater/xmms-skins-ater.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/xmms-skins-ater/xmms-skins-ater.SlackBuild')
-rw-r--r--desktop/xmms-skins-ater/xmms-skins-ater.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/desktop/xmms-skins-ater/xmms-skins-ater.SlackBuild b/desktop/xmms-skins-ater/xmms-skins-ater.SlackBuild
index fd8ec27884308..da55232644dcf 100644
--- a/desktop/xmms-skins-ater/xmms-skins-ater.SlackBuild
+++ b/desktop/xmms-skins-ater/xmms-skins-ater.SlackBuild
@@ -28,12 +28,21 @@ PRGNAM=xmms-skins-ater
VERSION=${VERSION:-1.7}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
ARCH=noarch
SRCNAM=ATER-XMMS
SRCVER=43630 # "version" at opendesktop.org
+# 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}
@@ -64,4 +73,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