diff options
Diffstat (limited to 'desktop/oomox/oomox.SlackBuild')
-rw-r--r-- | desktop/oomox/oomox.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/desktop/oomox/oomox.SlackBuild b/desktop/oomox/oomox.SlackBuild index ccb0f2a7c88a5..b91a8c53129c0 100644 --- a/desktop/oomox/oomox.SlackBuild +++ b/desktop/oomox/oomox.SlackBuild @@ -28,6 +28,7 @@ PRGNAM=oomox VERSION=${VERSION:-1.7.0.6} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} ARCH=noarch @@ -39,6 +40,14 @@ MATERIAVER=${MATERIAVER:-20180922} OOMOXVER=${OOMOXVER:-1.9.1} OOMOXIFYVER=${OOMOXIFYVER:-1.0.1} +# 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} @@ -137,4 +146,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 |