aboutsummaryrefslogtreecommitdiff
path: root/desktop/xmms-skins-almond/xmms-skins-almond.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/xmms-skins-almond/xmms-skins-almond.SlackBuild')
-rw-r--r--desktop/xmms-skins-almond/xmms-skins-almond.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/desktop/xmms-skins-almond/xmms-skins-almond.SlackBuild b/desktop/xmms-skins-almond/xmms-skins-almond.SlackBuild
index 4cca264eeaf0..94d0e8860a96 100644
--- a/desktop/xmms-skins-almond/xmms-skins-almond.SlackBuild
+++ b/desktop/xmms-skins-almond/xmms-skins-almond.SlackBuild
@@ -28,6 +28,7 @@ PRGNAM=xmms-skins-almond
VERSION=${VERSION:-1.2}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
ARCH=noarch
@@ -37,6 +38,14 @@ SQRVER=107307 # Squared skins "version"
DRKVER=60117 # Dark skin "version"
MODVER=66826 # Modified steel skin "version"
+# 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}
@@ -73,4 +82,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