From ac3d5d65520c7a061396f1312321267addc769ea Mon Sep 17 00:00:00 2001 From: Brenton Earl Date: Tue, 10 Nov 2015 23:57:19 -0600 Subject: python/pyPdf: Updated for version 1.25.1. Signed-off-by: Robby Workman --- python/pyPdf/pyPdf.SlackBuild | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'python/pyPdf/pyPdf.SlackBuild') diff --git a/python/pyPdf/pyPdf.SlackBuild b/python/pyPdf/pyPdf.SlackBuild index 6b8268988a18..89330334575a 100644 --- a/python/pyPdf/pyPdf.SlackBuild +++ b/python/pyPdf/pyPdf.SlackBuild @@ -1,8 +1,9 @@ #!/bin/sh # Slackware build script for pyPdf. -# + # Copyright 2009-2011 Marco Bonetti +# Copyright 2015 Brenton Earl # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,10 +24,12 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=pyPdf -VERSION=1.13 +VERSION=1.25.1 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +SRCDIRNAM=PyPDF2 + if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; @@ -40,7 +43,7 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -DOCS="PKG-INFO README" +DOCS="CHANGELOG LICENSE README.md" set -e @@ -48,8 +51,8 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz +cd $SRCDIRNAM-$VERSION chown -R root:root . find -L . \ -- cgit v1.2.3