aboutsummaryrefslogtreecommitdiff
path: root/misc/jmri
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:11:05 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:11:05 -0400
commit5b9655bdc6c05a454777c4e1a56ec4d8453a5c0a (patch)
treed077a2c064d432aa2bf8aab68bc2c96361e81787 /misc/jmri
parent251ad552e2217576121c76d668b37f93b90ec58f (diff)
misc/jmri: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'misc/jmri')
-rw-r--r--misc/jmri/jmri.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/misc/jmri/jmri.SlackBuild b/misc/jmri/jmri.SlackBuild
index 5a29c5707f69..785db9007b10 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