summaryrefslogtreecommitdiffstats
path: root/perl/perl-Package-Constants
diff options
context:
space:
mode:
Diffstat (limited to 'perl/perl-Package-Constants')
-rw-r--r--perl/perl-Package-Constants/perl-Package-Constants.SlackBuild16
-rw-r--r--perl/perl-Package-Constants/perl-Package-Constants.info4
2 files changed, 15 insertions, 5 deletions
diff --git a/perl/perl-Package-Constants/perl-Package-Constants.SlackBuild b/perl/perl-Package-Constants/perl-Package-Constants.SlackBuild
index 195c4e863b..2fba79a7c9 100644
--- a/perl/perl-Package-Constants/perl-Package-Constants.SlackBuild
+++ b/perl/perl-Package-Constants/perl-Package-Constants.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for perl-Package-Constants
@@ -16,10 +16,13 @@
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=perl-Package-Constants
VERSION=${VERSION:-0.06}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
SRCNAM="$(printf $PRGNAM | cut -d- -f2-)"
@@ -31,7 +34,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}
@@ -88,4 +98,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-Package-Constants/perl-Package-Constants.info b/perl/perl-Package-Constants/perl-Package-Constants.info
index a05eb4fbd3..c98acdc5f8 100644
--- a/perl/perl-Package-Constants/perl-Package-Constants.info
+++ b/perl/perl-Package-Constants/perl-Package-Constants.info
@@ -6,5 +6,5 @@ MD5SUM="e608e8eb260ee6226943c67eba1015ed"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Andreas Voegele"
-EMAIL="andreas@andreasvoegele.com"
+MAINTAINER="Sergey Poznyakoff"
+EMAIL="gray@gnu.org"