diff options
Diffstat (limited to 'games/openmsx-debugger/openmsx-debugger.SlackBuild')
-rw-r--r-- | games/openmsx-debugger/openmsx-debugger.SlackBuild | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/games/openmsx-debugger/openmsx-debugger.SlackBuild b/games/openmsx-debugger/openmsx-debugger.SlackBuild index 92332cce95..8571cdf66c 100644 --- a/games/openmsx-debugger/openmsx-debugger.SlackBuild +++ b/games/openmsx-debugger/openmsx-debugger.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for openmsx-debugger -# Copyright 2016-2019 Philip van der Hoeven, Almere, The Netherlands +# Copyright 2016-2024 Philip van der Hoeven, Almere, The Netherlands # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,12 +22,15 @@ # 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=openmsx-debugger SRCNAM=debugger -VERSION=${VERSION:-20181202} -SRCVERSION=789ef3cafa1837965373c2244d6a4541de863d5c +VERSION=${VERSION:-20230717} +SRCVERSION=9766bd546b59f415798f24c5b48719ee2462a2ae BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -37,7 +40,14 @@ if [ -z "$ARCH" ]; then esac fi -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} @@ -95,4 +105,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 |