diff options
Diffstat (limited to 'perl/perl-gnome2/perl-gnome2.SlackBuild')
-rw-r--r-- | perl/perl-gnome2/perl-gnome2.SlackBuild | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/perl/perl-gnome2/perl-gnome2.SlackBuild b/perl/perl-gnome2/perl-gnome2.SlackBuild index 583dba2fc6..4e31dbcffc 100644 --- a/perl/perl-gnome2/perl-gnome2.SlackBuild +++ b/perl/perl-gnome2/perl-gnome2.SlackBuild @@ -1,10 +1,11 @@ -#!/bin/sh +#!/bin/bash # # Slackware build script for perl-gnome2. # # Copyright 2010 Binh Nguyen <binhvng@gmail.com> # Copyright 2015-2017 Glenn Becker <glenn.becker@gmail.com> -# Copyright 2017 Edinaldo P. Silva, Rio de Janeiro, Brazil. +# Copyright 2017-2020 Edinaldo P. Silva, Rio de Janeiro, Brazil. +# Copyright 2020 Donald Cooley, South Haven, Indiana, USA # # All rights reserved. # @@ -25,10 +26,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-gnome2 VERSION=${VERSION:-1.047} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} 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} @@ -102,4 +113,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 |