summaryrefslogtreecommitdiffstats
path: root/network/onyx/onyx.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/onyx/onyx.SlackBuild')
-rw-r--r--network/onyx/onyx.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/network/onyx/onyx.SlackBuild b/network/onyx/onyx.SlackBuild
index e8219b58ca..9a36ecddc2 100644
--- a/network/onyx/onyx.SlackBuild
+++ b/network/onyx/onyx.SlackBuild
@@ -25,6 +25,7 @@
VERSION=${VERSION:-0.9.2.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
# The source extracts to the "overbitenx" directory, but the actual utility
# we're building is "onyx" (the rest of overbitenx is a Firefox extension that the
@@ -44,6 +45,14 @@ if [ -z "$ARCH" ]; then
esac
fi
+# 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}
@@ -99,4 +108,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