summaryrefslogtreecommitdiff
path: root/libraries/utfcpp/utfcpp.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/utfcpp/utfcpp.SlackBuild')
-rw-r--r--libraries/utfcpp/utfcpp.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/libraries/utfcpp/utfcpp.SlackBuild b/libraries/utfcpp/utfcpp.SlackBuild
index d6b26ea77d..3ebefafc06 100644
--- a/libraries/utfcpp/utfcpp.SlackBuild
+++ b/libraries/utfcpp/utfcpp.SlackBuild
@@ -26,10 +26,19 @@ PRGNAM=utfcpp
VERSION=${VERSION:-2012.02.10}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
GITHUBVERS="2233ec933f5661c7050b94d3b14f5f9f51ae3d55"
ARCH=noarch
+# 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}
@@ -55,4 +64,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