aboutsummaryrefslogtreecommitdiff
path: root/development/nuget/nuget.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/nuget/nuget.SlackBuild')
-rw-r--r--development/nuget/nuget.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/development/nuget/nuget.SlackBuild b/development/nuget/nuget.SlackBuild
index 68a75a2f3d32..a3b8aaae3fe1 100644
--- a/development/nuget/nuget.SlackBuild
+++ b/development/nuget/nuget.SlackBuild
@@ -28,6 +28,15 @@ PRGNAM=nuget
VERSION=${VERSION:-3.5.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+# 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
@@ -64,5 +73,5 @@ 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