diff options
Diffstat (limited to 'academic/sage')
-rw-r--r-- | academic/sage/sage.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/academic/sage/sage.SlackBuild b/academic/sage/sage.SlackBuild index e6b0b129a3..eb9bd0cc95 100644 --- a/academic/sage/sage.SlackBuild +++ b/academic/sage/sage.SlackBuild @@ -30,6 +30,7 @@ PRGNAM=sage VERSION=${VERSION:-9.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -53,6 +54,14 @@ fi # in the /tmp folder if we want it to remain after installation. # So we'll put it in /var/tmp. Maybe just sticking it in /usr is better. +# 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:-/var/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -138,4 +147,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc sed "s%SAGEROOT%${SAGEROOT}%" $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -p -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -p -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |