diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:10:08 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:10:08 -0400 |
commit | 4fa7d481dd2788fa537993c5542bc82180f75d25 (patch) | |
tree | 26d30825a947fd05d51b7a40c920adb88a80c151 /libraries | |
parent | a3dfdf8808ae81b0b80fdb034ddefdf3089c68eb (diff) |
libraries/pypoppler: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/pypoppler/pypoppler.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libraries/pypoppler/pypoppler.SlackBuild b/libraries/pypoppler/pypoppler.SlackBuild index c26f5a44c57b7..893c5212c3502 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 |