diff options
Diffstat (limited to 'perl/perl-Inline-C')
-rw-r--r-- | perl/perl-Inline-C/README | 19 | ||||
-rw-r--r-- | perl/perl-Inline-C/perl-Inline-C.SlackBuild | 16 |
2 files changed, 23 insertions, 12 deletions
diff --git a/perl/perl-Inline-C/README b/perl/perl-Inline-C/README index 7a8d3c58c6..4579e66d4b 100644 --- a/perl/perl-Inline-C/README +++ b/perl/perl-Inline-C/README @@ -1,13 +1,14 @@ -Inline::C is a module that allows you to write Perl subroutines in C. Since -version 0.30 the Inline module supports multiple programming languages and -each language has its own support module. This document describes how to use -Inline with the C programming language. It also goes a bit into Perl C -internals. +Inline::C is a module that allows you to write Perl subroutines in +C. Since version 0.30 the Inline module supports multiple programming +languages and each language has its own support module. This document +describes how to use Inline with the C programming language. It also +goes a bit into Perl C internals. -If you want to start working with programming examples right away, check out -Inline::C::Cookbook. For more information on Inline in general, see Inline. +If you want to start working with programming examples right away, +check out Inline::C::Cookbook. For more information on Inline in +general, see Inline. USAGE -You never actually use Inline::C directly. It is just a support module for -using Inline.pm with C. +You never actually use Inline::C directly. It is just a support module +for using Inline.pm with C. diff --git a/perl/perl-Inline-C/perl-Inline-C.SlackBuild b/perl/perl-Inline-C/perl-Inline-C.SlackBuild index cb80f3d5f5..dea33af56d 100644 --- a/perl/perl-Inline-C/perl-Inline-C.SlackBuild +++ b/perl/perl-Inline-C/perl-Inline-C.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for perl-Inline-C @@ -23,10 +23,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=perl-Inline-C VERSION=${VERSION:-0.78} 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} @@ -96,4 +106,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 |