summaryrefslogtreecommitdiffstats
path: root/perl/perl-gnome2-canvas
diff options
context:
space:
mode:
Diffstat (limited to 'perl/perl-gnome2-canvas')
-rw-r--r--perl/perl-gnome2-canvas/perl-gnome2-canvas.SlackBuild16
-rw-r--r--perl/perl-gnome2-canvas/slack-desc2
2 files changed, 14 insertions, 4 deletions
diff --git a/perl/perl-gnome2-canvas/perl-gnome2-canvas.SlackBuild b/perl/perl-gnome2-canvas/perl-gnome2-canvas.SlackBuild
index e9760c60d8..3b9f550417 100644
--- a/perl/perl-gnome2-canvas/perl-gnome2-canvas.SlackBuild
+++ b/perl/perl-gnome2-canvas/perl-gnome2-canvas.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
#
# Slackware build script for perl-gnome2-canvas.
#
@@ -26,10 +26,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-gnome2-canvas
VERSION=${VERSION:-1.002}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -39,7 +42,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}
@@ -102,4 +112,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-gnome2-canvas/slack-desc b/perl/perl-gnome2-canvas/slack-desc
index b30edba102..7c1b1f6393 100644
--- a/perl/perl-gnome2-canvas/slack-desc
+++ b/perl/perl-gnome2-canvas/slack-desc
@@ -13,7 +13,7 @@ perl-gnome2-canvas: GnomeCanvas widget with Gtk2-Perl.
perl-gnome2-canvas:
perl-gnome2-canvas: Like the Gtk2 module on which it depends, Gnome2::Canvas follows the C
perl-gnome2-canvas: API of libgnomecanvas-2.0 as closely as possible while still being
-perl-gnome2-canvas: perlish. Thus, the C API reference remains the canonical documentation.
+perl-gnome2-canvas: perlish; the C API reference remains the canonical documentation.
perl-gnome2-canvas:
perl-gnome2-canvas: Home page: https://metacpan.org/release/Gnome2-Canvas
perl-gnome2-canvas: