diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:09:59 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:09:59 -0400 |
commit | d33f0a1fcd1c3dfe64964032a6864a25a433e544 (patch) | |
tree | fef4cc2316faa952720b3203debb7c1da2435db5 /libraries | |
parent | e0ae59be7126f6e07a059f97f06a60bfe2a80f49 (diff) | |
download | slackbuilds-d33f0a1fcd1c3dfe64964032a6864a25a433e544.tar.gz |
libraries/pyPdf: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/pyPdf/pyPdf.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libraries/pyPdf/pyPdf.SlackBuild b/libraries/pyPdf/pyPdf.SlackBuild index ab8ffa0fa5..124da91835 100644 --- a/libraries/pyPdf/pyPdf.SlackBuild +++ b/libraries/pyPdf/pyPdf.SlackBuild @@ -24,10 +24,19 @@ PRGNAM=pyPdf VERSION=1.12 -ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$( uname -m ) ;; + esac +fi + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM |