summaryrefslogtreecommitdiffstats
path: root/academic/wehi-weasel/wehi-weasel.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/wehi-weasel/wehi-weasel.SlackBuild')
-rw-r--r--academic/wehi-weasel/wehi-weasel.SlackBuild22
1 files changed, 16 insertions, 6 deletions
diff --git a/academic/wehi-weasel/wehi-weasel.SlackBuild b/academic/wehi-weasel/wehi-weasel.SlackBuild
index 2eae95610b..17332d1bb0 100644
--- a/academic/wehi-weasel/wehi-weasel.SlackBuild
+++ b/academic/wehi-weasel/wehi-weasel.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for wehi-weasel
-# Copyright 2017-2020 Petar Petrov slackalaxy@gmail.com
+# Copyright 2017-2023 Petar Petrov slackalaxy@gmail.com
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,21 +22,31 @@
# 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=wehi-weasel
-VERSION=${VERSION:-3.7.1.18}
+VERSION=${VERSION:-3.8.0.18}
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}
SRCNAM=wsl
JARNAM=Weasel
-SRCVER=37118
+SRCVER=38018
SRCDIST=unix
LICENSE=WeaselLicence.doc
@@ -83,4 +93,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