diff options
Diffstat (limited to 'games/jin/jin.SlackBuild')
-rw-r--r-- | games/jin/jin.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/games/jin/jin.SlackBuild b/games/jin/jin.SlackBuild index 5e2063a92d40b..65cf59a06bcc2 100644 --- a/games/jin/jin.SlackBuild +++ b/games/jin/jin.SlackBuild @@ -35,10 +35,19 @@ PRGNAM=jin VERSION=${VERSION:-2.14.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} # Independent of architecture so will throw it into /opt 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} @@ -82,4 +91,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh 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 |