summaryrefslogtreecommitdiffstats
path: root/perl/perl-Text-CSV_XS
diff options
context:
space:
mode:
Diffstat (limited to 'perl/perl-Text-CSV_XS')
-rw-r--r--perl/perl-Text-CSV_XS/README6
-rw-r--r--perl/perl-Text-CSV_XS/perl-Text-CSV_XS.SlackBuild16
2 files changed, 16 insertions, 6 deletions
diff --git a/perl/perl-Text-CSV_XS/README b/perl/perl-Text-CSV_XS/README
index 4bbec22ced..03afdb576b 100644
--- a/perl/perl-Text-CSV_XS/README
+++ b/perl/perl-Text-CSV_XS/README
@@ -1,3 +1,3 @@
-Text::CSV_XS provides facilities for the composition and decomposition of
-comma-separated values. An instance of the Text::CSV_XS class can combine
-fields into a CSV string and parse a CSV string into fields.
+Text::CSV_XS provides facilities for the composition and decomposition
+of comma-separated values. An instance of the Text::CSV_XS class can
+combine fields into a CSV string and parse a CSV string into fields.
diff --git a/perl/perl-Text-CSV_XS/perl-Text-CSV_XS.SlackBuild b/perl/perl-Text-CSV_XS/perl-Text-CSV_XS.SlackBuild
index 39b476e34e..1848b38305 100644
--- a/perl/perl-Text-CSV_XS/perl-Text-CSV_XS.SlackBuild
+++ b/perl/perl-Text-CSV_XS/perl-Text-CSV_XS.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for Text::CSV_XS
@@ -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-Text-CSV_XS
VERSION=${VERSION:-1.38}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
SRCNAM="$(printf $PRGNAM | cut -d- -f2-)"
@@ -41,7 +44,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}
@@ -104,4 +114,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