diff options
Diffstat (limited to 'development/d-tools/d-tools.SlackBuild')
-rw-r--r-- | development/d-tools/d-tools.SlackBuild | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/development/d-tools/d-tools.SlackBuild b/development/d-tools/d-tools.SlackBuild index 3e7012b683..0b3ddacf87 100644 --- a/development/d-tools/d-tools.SlackBuild +++ b/development/d-tools/d-tools.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for D tools -# Copyright 2017-2019 Eugene Wissner, Dachau, Germany +# Copyright 2017-2024 Eugene Wissner, Mannheim, Germany # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -22,14 +22,17 @@ # (INCLUDING NEGLIGENCE OR 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=d-tools -VERSION=${VERSION:-2.090.0} +VERSION=${VERSION:-2.107.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} -DUB_VERSION=${DUB_VERSION:-1.19.0} -DSCANNER_VERSION=${DSCANNER_VERSION:-0.8.0} -DCD_VERSION=${DCD_VERSION:-0.12.0} +DUB_VERSION=${DUB_VERSION:-1.36.0} +DSCANNER_VERSION=${DSCANNER_VERSION:-0.15.2} +DCD_VERSION=${DCD_VERSION:-0.15.2} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -39,7 +42,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} @@ -77,7 +87,7 @@ chmod -R u+w,go-w,a+rX-st . case "$DC" in *gdc) sh build-gdc.sh ;; - *) sh build.sh + *) dmd -run build.d ;; esac @@ -118,9 +128,9 @@ chown -R root:root . chmod -R u+w,go-w,a+rX-st . case "$DC" in - *gdc) make gdcbuild + *gdc) make gdc ;; - *) make dmdbuild + *) make all ;; esac mv bin/dscanner $PKG/usr/bin @@ -149,4 +159,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 |