From 5b9655bdc6c05a454777c4e1a56ec4d8453a5c0a Mon Sep 17 00:00:00 2001 From: David Somero Date: Fri, 4 Jun 2010 01:11:05 -0400 Subject: [PATCH] misc/jmri: Misc automated cleanups. Signed-off-by: David Somero --- misc/jmri/jmri.SlackBuild | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/misc/jmri/jmri.SlackBuild b/misc/jmri/jmri.SlackBuild index 5a29c5707f..785db9007b 100644 --- a/misc/jmri/jmri.SlackBuild +++ b/misc/jmri/jmri.SlackBuild @@ -6,12 +6,21 @@ PRGNAM=jmri VERSION=2.4A -ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} TARNAM=JMRI +# 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