aboutsummaryrefslogtreecommitdiff
path: root/libraries/pypoppler
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:10:08 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:10:08 -0400
commit4fa7d481dd2788fa537993c5542bc82180f75d25 (patch)
tree26d30825a947fd05d51b7a40c920adb88a80c151 /libraries/pypoppler
parenta3dfdf8808ae81b0b80fdb034ddefdf3089c68eb (diff)
libraries/pypoppler: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/pypoppler')
-rw-r--r--libraries/pypoppler/pypoppler.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/libraries/pypoppler/pypoppler.SlackBuild b/libraries/pypoppler/pypoppler.SlackBuild
index c26f5a44c57b..893c5212c350 100644
--- a/libraries/pypoppler/pypoppler.SlackBuild
+++ b/libraries/pypoppler/pypoppler.SlackBuild
@@ -6,10 +6,19 @@
PRGNAM=pypoppler
VERSION=${VERSION:-0.10.1}
-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