python/pyPdf: Fix script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
06f0f73fda
commit
0150491966
|
@ -3,7 +3,7 @@
|
|||
# Slackware build script for pyPdf.
|
||||
|
||||
# Copyright 2009-2011 Marco Bonetti <sid77@slackware.it>
|
||||
# Copyright 2015-2016 Brenton Earl <brent@exitstatusone.com>
|
||||
# Copyright 2015-2017 Brenton Earl <brent@exitstatusone.com>
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -24,6 +24,7 @@
|
|||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=pyPdf
|
||||
SRCNAM=pyPDF2
|
||||
VERSION=${VERSION:-1.26.0}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
@ -46,13 +47,27 @@ OUTPUT=${OUTPUT:-/tmp}
|
|||
DOCS="CHANGELOG LICENSE README.md"
|
||||
SAMPLES="Scripts/ Sample_Code/ Resources/"
|
||||
|
||||
if [ "$ARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $SRCDIRNAM-$VERSION
|
||||
tar xvf $CWD/$SRCDIRNAM-$VERSION.tar.gz
|
||||
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
|
||||
cd $SRCDIRNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
|
|
Loading…
Reference in New Issue