summaryrefslogtreecommitdiffstats
path: root/python/python3-dateutil/python3-dateutil.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'python/python3-dateutil/python3-dateutil.SlackBuild')
-rw-r--r--python/python3-dateutil/python3-dateutil.SlackBuild27
1 files changed, 19 insertions, 8 deletions
diff --git a/python/python3-dateutil/python3-dateutil.SlackBuild b/python/python3-dateutil/python3-dateutil.SlackBuild
index 77a8b90cf1..9c3cef7270 100644
--- a/python/python3-dateutil/python3-dateutil.SlackBuild
+++ b/python/python3-dateutil/python3-dateutil.SlackBuild
@@ -1,9 +1,10 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for python3-dateutil
-# Copyright 2017-2019 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
+# Copyright 2021 Yth | Pont-en-Royans, France | yth@ythogtha.org
# Copyright 2012-2017 Larry Hajali <larryhaja[at]gmail[dot]com>
+# Copyright 2017-2019 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,12 +24,15 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-PKGNAM=dateutil
-SRCNAM=python-$PKGNAM
-PRGNAM=python3-$PKGNAM
-VERSION=${VERSION:-2.8.1}
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=python3-dateutil
+VERSION=${VERSION:-2.9.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+SRCNAM=python-dateutil
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -38,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}
@@ -73,4 +84,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