summaryrefslogtreecommitdiffstats
path: root/perl/perl-www-mechanize
diff options
context:
space:
mode:
Diffstat (limited to 'perl/perl-www-mechanize')
-rw-r--r--perl/perl-www-mechanize/perl-www-mechanize.SlackBuild16
-rw-r--r--perl/perl-www-mechanize/perl-www-mechanize.info2
2 files changed, 14 insertions, 4 deletions
diff --git a/perl/perl-www-mechanize/perl-www-mechanize.SlackBuild b/perl/perl-www-mechanize/perl-www-mechanize.SlackBuild
index 69525147e8..1a3754e8c9 100644
--- a/perl/perl-www-mechanize/perl-www-mechanize.SlackBuild
+++ b/perl/perl-www-mechanize/perl-www-mechanize.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for perl-www-mechanize
@@ -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-www-mechanize
VERSION=${VERSION:-1.84}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
SRCNAM=WWW-Mechanize
@@ -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}
@@ -83,4 +93,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-www-mechanize/perl-www-mechanize.info b/perl/perl-www-mechanize/perl-www-mechanize.info
index 15e93dd22f..22bf0b4205 100644
--- a/perl/perl-www-mechanize/perl-www-mechanize.info
+++ b/perl/perl-www-mechanize/perl-www-mechanize.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://cpan.metacpan.org/authors/id/O/OA/OALDERS/WWW-Mechanize-1.84.t
MD5SUM="a425ae16d3b634ae34062f2fafc0a4ac"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="perl-html-form perl-http-response-encoding perl-http-server-simple perl-test-warn"
+REQUIRES="perl-html-form perl-http-response-encoding perl-http-server-simple"
MAINTAINER="Brenton Earl"
EMAIL="brent@exitstatusone.com"