summaryrefslogtreecommitdiffstats
path: root/perl/perl-Hook-LexWrap
diff options
context:
space:
mode:
Diffstat (limited to 'perl/perl-Hook-LexWrap')
-rw-r--r--perl/perl-Hook-LexWrap/perl-Hook-LexWrap.SlackBuild16
-rw-r--r--perl/perl-Hook-LexWrap/slack-desc2
2 files changed, 14 insertions, 4 deletions
diff --git a/perl/perl-Hook-LexWrap/perl-Hook-LexWrap.SlackBuild b/perl/perl-Hook-LexWrap/perl-Hook-LexWrap.SlackBuild
index 289a08e100..c8af466c1f 100644
--- a/perl/perl-Hook-LexWrap/perl-Hook-LexWrap.SlackBuild
+++ b/perl/perl-Hook-LexWrap/perl-Hook-LexWrap.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for perl-Hook-LexWrap
@@ -22,16 +22,26 @@
# 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-Hook-LexWrap
VERSION=${VERSION:-0.26}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
SRCNAM="$(printf $PRGNAM | cut -d- -f2-)"
ARCH=noarch
-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}
@@ -79,4 +89,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-Hook-LexWrap/slack-desc b/perl/perl-Hook-LexWrap/slack-desc
index f050495e1b..84b7381540 100644
--- a/perl/perl-Hook-LexWrap/slack-desc
+++ b/perl/perl-Hook-LexWrap/slack-desc
@@ -5,7 +5,7 @@
# You must make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.
- |-----handy-ruler------------------------------------------------------|
+ |-----handy-ruler------------------------------------------------------|
perl-Hook-LexWrap: perl-Hook-LexWrap (Sub hooks for Perl 5)
perl-Hook-LexWrap:
perl-Hook-LexWrap: It is a bundle of lexically scoped subroutine wrappers.