diff options
Diffstat (limited to 'academic/wehi-weasel/wehi-weasel.SlackBuild')
-rw-r--r-- | academic/wehi-weasel/wehi-weasel.SlackBuild | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/academic/wehi-weasel/wehi-weasel.SlackBuild b/academic/wehi-weasel/wehi-weasel.SlackBuild index 3d61c1e11c..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.6.0.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=36018 +SRCVER=38018 SRCDIST=unix LICENSE=WeaselLicence.doc @@ -57,10 +67,10 @@ find -L . \ # Copy the jar file and the icons. I am not sure the icons are needed # by the program at runtime, but it will not hurt to have them there. -mkdir -p $PKG/usr/share/java/$PRGNAM +mkdir -p $PKG/opt/$PRGNAM cp -a \ $JARNAM.jar WeaselIcon16.gif WeaselIcon32.gif WeaselIcon.ico \ - $PKG/usr/share/java/$PRGNAM + $PKG/opt/$PRGNAM # You may wish to check this simple wrapper for the amount of RAM that # is allocated to the program. @@ -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 |