summaryrefslogtreecommitdiffstats
path: root/perl/perl-PDF-API2
diff options
context:
space:
mode:
Diffstat (limited to 'perl/perl-PDF-API2')
-rw-r--r--perl/perl-PDF-API2/perl-PDF-API2.SlackBuild18
-rw-r--r--perl/perl-PDF-API2/perl-PDF-API2.info6
2 files changed, 17 insertions, 7 deletions
diff --git a/perl/perl-PDF-API2/perl-PDF-API2.SlackBuild b/perl/perl-PDF-API2/perl-PDF-API2.SlackBuild
index 06ba52d50b..bf2095a64f 100644
--- a/perl/perl-PDF-API2/perl-PDF-API2.SlackBuild
+++ b/perl/perl-PDF-API2/perl-PDF-API2.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for perl-PDF-API2
@@ -22,10 +22,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-PDF-API2
-VERSION=${VERSION:-2.033}
+VERSION=${VERSION:-2.038}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
SRCNAM="$(printf $PRGNAM | cut -d- -f2-)"
@@ -37,7 +40,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}
@@ -99,4 +109,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-PDF-API2/perl-PDF-API2.info b/perl/perl-PDF-API2/perl-PDF-API2.info
index 681c7ed704..c54df2e261 100644
--- a/perl/perl-PDF-API2/perl-PDF-API2.info
+++ b/perl/perl-PDF-API2/perl-PDF-API2.info
@@ -1,8 +1,8 @@
PRGNAM="perl-PDF-API2"
-VERSION="2.033"
+VERSION="2.038"
HOMEPAGE="https://metacpan.org/pod/PDF::API2"
-DOWNLOAD="https://cpan.metacpan.org/authors/id/S/SS/SSIMMS/PDF-API2-2.033.tar.gz"
-MD5SUM="4223a38add42741f996bd67d5f2f8e5b"
+DOWNLOAD="https://cpan.metacpan.org/authors/id/S/SS/SSIMMS/PDF-API2-2.038.tar.gz"
+MD5SUM="2d6683d01b95f554ec5bb2e29f31ff03"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="perl-Font-TTF"