diff options
author | Arn0 <yth@ythogtha.org> | 2023-05-14 15:16:58 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-05-20 11:17:19 +0700 |
commit | 0fb4f4c81a038e91d6bb607e2f0d1145d1f75d7f (patch) | |
tree | b2ad2330a1ae9a21f126f15f58e517e69865a885 /desktop/dbgl-legacy/dbgl-legacy.SlackBuild | |
parent | 13a0d3aa1407dd61976bb4d3ff4a41159140e021 (diff) |
desktop/dbgl-legacy: New maintainer, builds from source.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/dbgl-legacy/dbgl-legacy.SlackBuild')
-rw-r--r-- | desktop/dbgl-legacy/dbgl-legacy.SlackBuild | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/desktop/dbgl-legacy/dbgl-legacy.SlackBuild b/desktop/dbgl-legacy/dbgl-legacy.SlackBuild index 873055f4ae51..f4211333ed5e 100644 --- a/desktop/dbgl-legacy/dbgl-legacy.SlackBuild +++ b/desktop/dbgl-legacy/dbgl-legacy.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for dbgl-legacy # Copyright 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 @@ -26,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=dbgl-legacy VERSION=${VERSION:-0.83} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -50,12 +51,6 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -case "$ARCH" in - i?86) ;; - x86_64) ;; - *) echo "$ARCH architecture is not supported"; exit 1 ;; -esac - set -e rm -rf $PKG @@ -64,7 +59,21 @@ cd $TMP rm -rf $PRGNAM-$VERSION mkdir $PRGNAM-$VERSION cd $PRGNAM-$VERSION -tar xvf $CWD/dbgl${VERSION//./}_generic.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/dbgl${VERSION//./}.tar.gz chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ |