summaryrefslogtreecommitdiffstats
path: root/perl/perl-net-dbus/perl-net-dbus.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'perl/perl-net-dbus/perl-net-dbus.SlackBuild')
-rw-r--r--perl/perl-net-dbus/perl-net-dbus.SlackBuild22
1 files changed, 16 insertions, 6 deletions
diff --git a/perl/perl-net-dbus/perl-net-dbus.SlackBuild b/perl/perl-net-dbus/perl-net-dbus.SlackBuild
index 4c30f95d9b..65ccfb82ac 100644
--- a/perl/perl-net-dbus/perl-net-dbus.SlackBuild
+++ b/perl/perl-net-dbus/perl-net-dbus.SlackBuild
@@ -1,10 +1,10 @@
-#!/bin/sh
+#!/bin/bash
#
# Slackware build script for perl-net-dbus.
#
# Copyright 2011-2012 Binh Nguyen <binhvng@gmail.com>
# Adopted 2014-2017 Glenn Becker <glenn.becker@gmail.com>
-# Copyright 2017 Edinaldo P. Silva, Rio de Janeiro, Brazil.
+# Copyright 2017-2019 Edinaldo P. Silva, Rio de Janeiro, Brazil.
#
# All rights reserved.
#
@@ -25,10 +25,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=perl-net-dbus
-VERSION=${VERSION:-1.1.0}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-1.2.0}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -38,7 +41,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}
@@ -101,4 +111,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