diff options
Diffstat (limited to 'system/vagrant/vagrant.SlackBuild')
-rw-r--r-- | system/vagrant/vagrant.SlackBuild | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/system/vagrant/vagrant.SlackBuild b/system/vagrant/vagrant.SlackBuild index cd8e09f74c..c56726df01 100644 --- a/system/vagrant/vagrant.SlackBuild +++ b/system/vagrant/vagrant.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # SlackBuild script for vagrant -# Copyright 2013-2020 Benjamin Trigona-Harany <slackbuilds@jaxartes.net> +# Copyright 2013-2021 Benjamin Trigona-Harany <slackbuilds@jaxartes.net> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,10 +23,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=vagrant -VERSION=${VERSION:-2.2.14} +VERSION=${VERSION:-2.2.15} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} case "$( uname -m )" in i?86) ARCH=i586 ;; @@ -34,7 +37,14 @@ case "$( uname -m )" in *) ARCH=$( uname -m ) ;; esac -CWD=$(pwd) +# 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} @@ -63,4 +73,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 |