summaryrefslogtreecommitdiffstats
path: root/perl/perl-IO-Interface
diff options
context:
space:
mode:
Diffstat (limited to 'perl/perl-IO-Interface')
-rw-r--r--perl/perl-IO-Interface/perl-IO-Interface.SlackBuild16
-rw-r--r--perl/perl-IO-Interface/perl-IO-Interface.info2
2 files changed, 14 insertions, 4 deletions
diff --git a/perl/perl-IO-Interface/perl-IO-Interface.SlackBuild b/perl/perl-IO-Interface/perl-IO-Interface.SlackBuild
index 6c509b52d6..afb0ac7f73 100644
--- a/perl/perl-IO-Interface/perl-IO-Interface.SlackBuild
+++ b/perl/perl-IO-Interface/perl-IO-Interface.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
#
# Slackware build script for perl-IO-Interface.
#
@@ -23,10 +23,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-IO-Interface
VERSION=${VERSION:-1.09}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
SRCNAM="$(printf $PRGNAM | cut -d- -f2-)"
@@ -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}
@@ -103,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
diff --git a/perl/perl-IO-Interface/perl-IO-Interface.info b/perl/perl-IO-Interface/perl-IO-Interface.info
index e06f000ed2..514e70a4e7 100644
--- a/perl/perl-IO-Interface/perl-IO-Interface.info
+++ b/perl/perl-IO-Interface/perl-IO-Interface.info
@@ -6,5 +6,5 @@ MD5SUM="806f97aff5a7361b6f54cd494f4cc9fd"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="perl-Module-Build"
-MAINTAINER="Dave Woodfall"
+MAINTAINER="D Woodfall"
EMAIL="dave@slackbuilds.org"