diff options
-rw-r--r-- | desktop/dbgl/README | 3 | ||||
-rw-r--r-- | desktop/dbgl/dbgl.SlackBuild | 31 | ||||
-rw-r--r-- | desktop/dbgl/dbgl.info | 14 |
3 files changed, 35 insertions, 13 deletions
diff --git a/desktop/dbgl/README b/desktop/dbgl/README index c824bd3dd8a9e..1d85ee835f311 100644 --- a/desktop/dbgl/README +++ b/desktop/dbgl/README @@ -10,3 +10,6 @@ Notes: SBo, at least one of them must be installed. 2. starting from version 0.90, dbgl supports 64-bits architecture only; if you need 32-bits you should install package 'dbgl-legacy' instead. + +Java 11 minimum is required, but any kind of 11+ SlackBuild jdk may +build or run this package, eg zulu-openjdk17, OpenJDK11, or OpenJDK17. diff --git a/desktop/dbgl/dbgl.SlackBuild b/desktop/dbgl/dbgl.SlackBuild index 1f161e8d837a4..0ddc355ff78a3 100644 --- a/desktop/dbgl/dbgl.SlackBuild +++ b/desktop/dbgl/dbgl.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for dbgl # Copyright 2018-2020 Leonardo Citrolo, Italy +# Copyright 2023 Yth | Pont-en-Royans, France | yth@ythogtha.org # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=dbgl -VERSION=${VERSION:-0.92} +VERSION=${VERSION:-0.97} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -50,10 +51,14 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -case "$ARCH" in - x86_64) ;; - *) echo "$ARCH architecture is not supported"; exit 1 ;; -esac +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi +[[ $ARCH =~ i.86 ]] && echo "$ARCH architecture is not supported" && exit 1 set -e @@ -63,7 +68,21 @@ cd $TMP rm -rf $PRGNAM-$VERSION mkdir $PRGNAM-$VERSION cd $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM${VERSION//./}.tar.gz +# Building from source creates the binary package.tar.gz +unzip $CWD/src${VERSION//./}.zip +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +ant + +# Converting the package.tar.gz into a Slackware package +mkdir build +cd build +tar xvf ../dist/$PRGNAM${VERSION//./}.tar.gz chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ diff --git a/desktop/dbgl/dbgl.info b/desktop/dbgl/dbgl.info index 567684906554c..88a88022679c3 100644 --- a/desktop/dbgl/dbgl.info +++ b/desktop/dbgl/dbgl.info @@ -1,10 +1,10 @@ PRGNAM="dbgl" -VERSION="0.92" -HOMEPAGE="http://members.quicknet.nl/blankendaalr/dbgl/" +VERSION="0.97" +HOMEPAGE="https://dbgl.org/" DOWNLOAD="UNSUPPORTED" MD5SUM="" -DOWNLOAD_x86_64="https://ponce.cc/slackware/sources/repo/dbgl092.tar.gz" -MD5SUM_x86_64="d1eed3dc1694f1aa3186ff54104d8bd5" -REQUIRES="dosbox zulu-openjdk8" -MAINTAINER="Leo C." -EMAIL="leoc@gmx.com" +DOWNLOAD_x86_64="https://dbgl.org/download/src097.zip" +MD5SUM_x86_64="23c3f4fe63a910572d2c8f7dea64a20e" +REQUIRES="dosbox apache-ant zulu-openjdk11" +MAINTAINER="Yth - Arnaud" +EMAIL="yth@ythogtha.org" |