summaryrefslogtreecommitdiffstats
path: root/network/python-twisted-web2
diff options
context:
space:
mode:
author David Somero <xgizzmo@slackbuilds.org>2010-06-04 01:14:03 -0400
committer David Somero <xgizzmo@slackbuilds.org>2010-06-04 01:14:03 -0400
commit073369c10bb3590acdad140d5adc450734fa24e2 (patch)
treec61625ac9e2a923eec9e6835db13c4994a7723d8 /network/python-twisted-web2
parent6d4a9b3078838c045ebc390ec75839c611ab1d34 (diff)
downloadslackbuilds-073369c10bb3590acdad140d5adc450734fa24e2.tar.gz
slackbuilds-073369c10bb3590acdad140d5adc450734fa24e2.tar.xz
network/python-twisted-web2: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network/python-twisted-web2')
-rw-r--r--network/python-twisted-web2/python-twisted-web2.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/network/python-twisted-web2/python-twisted-web2.SlackBuild b/network/python-twisted-web2/python-twisted-web2.SlackBuild
index e1f95c6dab..4d66a780c2 100644
--- a/network/python-twisted-web2/python-twisted-web2.SlackBuild
+++ b/network/python-twisted-web2/python-twisted-web2.SlackBuild
@@ -26,10 +26,19 @@
PRGNAM=python-twisted-web2
SRCNAM=TwistedWeb2
VERSION=${VERSION:-8.1.0}
-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