diff options
Diffstat (limited to 'development/FreeBASIC/FreeBASIC.SlackBuild')
-rw-r--r-- | development/FreeBASIC/FreeBASIC.SlackBuild | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/development/FreeBASIC/FreeBASIC.SlackBuild b/development/FreeBASIC/FreeBASIC.SlackBuild index 87bea6da52..b38e6f51a7 100644 --- a/development/FreeBASIC/FreeBASIC.SlackBuild +++ b/development/FreeBASIC/FreeBASIC.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for FreeBASIC -# Copyright 2014-2019 Dimitris Zlatanidis Orestiada, Greece +# Copyright 2014-2024 Dimitris Zlatanidis Orestiada, Greece # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,9 +22,6 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# 20201224 bkw: BUILD=3, fixed, for real this time. I think. BUILD=2 -# version worked only if fbc was already installed :( - # 20201211 bkw: modified by SlackBuilds.org, to build FreeBASIC from source # instead of using prebuilt binary packages. There are various reasons for # wanting to do this: @@ -53,10 +50,13 @@ # problems. The sdl2-hello example segfaults with both the prebuilt # and built-from-source fbc :( +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=FreeBASIC -VERSION=${VERSION:-1.07.1} -BUILD=${BUILD:-3} +VERSION=${VERSION:-1.10.1} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -66,7 +66,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} @@ -155,4 +162,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 |