summaryrefslogtreecommitdiffstats
path: root/system/dget
diff options
context:
space:
mode:
Diffstat (limited to 'system/dget')
-rw-r--r--system/dget/dget.SlackBuild20
-rw-r--r--system/dget/dget.info10
2 files changed, 20 insertions, 10 deletions
diff --git a/system/dget/dget.SlackBuild b/system/dget/dget.SlackBuild
index 0c39954e42..37cb28fa8a 100644
--- a/system/dget/dget.SlackBuild
+++ b/system/dget/dget.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
#
# Slackware build script for dget.
#
-# Copyright 2018-2019 Edinaldo P. Silva, Rio de Janeiro, Brazil.
+# Copyright 2018-2023 Edinaldo P. Silva, Rio de Janeiro, Brazil.
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,10 +22,13 @@
# 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=dget
-VERSION=${VERSION:-2.19.5}
+VERSION=${VERSION:-2.23.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,7 +38,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}
@@ -102,4 +112,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
diff --git a/system/dget/dget.info b/system/dget/dget.info
index 0e021dd7b6..bb4c79b51f 100644
--- a/system/dget/dget.info
+++ b/system/dget/dget.info
@@ -1,10 +1,10 @@
PRGNAM="dget"
-VERSION="2.19.5"
+VERSION="2.23.4"
HOMEPAGE="https://goo.gl/mr1Uz3"
-DOWNLOAD="http://snapshot.debian.org/archive/debian/20190511T144548Z/pool/main/d/devscripts/devscripts_2.19.5_i386.deb"
-MD5SUM="c7b4607ea004acc2e32ec98d424d12f8"
-DOWNLOAD_x86_64="http://snapshot.debian.org/archive/debian/20190511T144548Z/pool/main/d/devscripts/devscripts_2.19.5_amd64.deb"
-MD5SUM_x86_64="b79ea7d732bfa1ec92d20c5d0251b5fd"
+DOWNLOAD="http://deb.debian.org/debian/pool/main/d/devscripts/devscripts_2.23.4_i386.deb"
+MD5SUM="d121430038cd22f5987c1dc433e39ffd"
+DOWNLOAD_x86_64="http://deb.debian.org/debian/pool/main/d/devscripts/devscripts_2.23.4_amd64.deb"
+MD5SUM_x86_64="97bd20212c18db5721d4bfa72c78a0ff"
REQUIRES="dpkg"
MAINTAINER="Edinaldo P. Silva"
EMAIL="edps.mundognu@gmail.com"