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