summaryrefslogtreecommitdiffstats
path: root/desktop/screenfetch/screenfetch.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/screenfetch/screenfetch.SlackBuild')
-rw-r--r--desktop/screenfetch/screenfetch.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/desktop/screenfetch/screenfetch.SlackBuild b/desktop/screenfetch/screenfetch.SlackBuild
index b2d4d26abd..4975add01e 100644
--- a/desktop/screenfetch/screenfetch.SlackBuild
+++ b/desktop/screenfetch/screenfetch.SlackBuild
@@ -54,8 +54,17 @@ SRCNAM="screenFetch"
VERSION="${VERSION:-3.9.1}"
BUILD="${BUILD:-1}"
TAG="${TAG:-_SBo}"
+PKGTYPE=${PKGTYPE:-tgz}
ARCH="noarch"
DOCS="CHANGELOG COPYING README.mkdn TODO"
+# 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}"
@@ -85,4 +94,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"