diff options
Diffstat (limited to 'network/plowshare-modules/plowshare-modules.SlackBuild')
-rw-r--r-- | network/plowshare-modules/plowshare-modules.SlackBuild | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/network/plowshare-modules/plowshare-modules.SlackBuild b/network/plowshare-modules/plowshare-modules.SlackBuild index 4f9854d34b..c72438e6ea 100644 --- a/network/plowshare-modules/plowshare-modules.SlackBuild +++ b/network/plowshare-modules/plowshare-modules.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for plowshare-modules -# Copyright 2017-2018 Jeremy Hansen <jebrhansen+SBo -at- gmail.com> +# Copyright 2017-2022 Jeremy Hansen <jebrhansen+SBo -at- gmail.com> # Copyright 2010 Mikhail Cuddy <mikhailcuddy@gmail.com> # All rights reserved. # @@ -23,16 +23,26 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=plowshare-modules -VERSION=${VERSION:-e94a905} +VERSION=${VERSION:-c22e296} SRCNAM=${PRGNAM}-legacy -SRCVER=${MODVER:-e94a9051f54abb66fd3963933587b2d4057a1614} +SRCVER=${MODVER:-c22e2962e26c1fcc539b41a37eaab448828842de} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} ARCH=noarch -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} @@ -66,4 +76,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 |