diff options
Diffstat (limited to 'perl/perl-Image-Info/perl-Image-Info.SlackBuild')
-rw-r--r-- | perl/perl-Image-Info/perl-Image-Info.SlackBuild | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/perl/perl-Image-Info/perl-Image-Info.SlackBuild b/perl/perl-Image-Info/perl-Image-Info.SlackBuild index 540131ed1a..113eabda30 100644 --- a/perl/perl-Image-Info/perl-Image-Info.SlackBuild +++ b/perl/perl-Image-Info/perl-Image-Info.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware Package Build Script for perl modules: Image::Info # Home Page https://metacpan.org/release/Image-Info @@ -27,11 +27,15 @@ # Modified by the SlackBuilds.org project. -SRCNAM=Image-Info -PRGNAM=perl-$SRCNAM +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=perl-Image-Info VERSION=${VERSION:-1.41} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +SRCNAM=Image-Info if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -41,7 +45,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} @@ -110,4 +121,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 |