diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:11:05 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:11:05 -0400 |
commit | 5b9655bdc6c05a454777c4e1a56ec4d8453a5c0a (patch) | |
tree | d077a2c064d432aa2bf8aab68bc2c96361e81787 | |
parent | 251ad552e2217576121c76d668b37f93b90ec58f (diff) | |
download | slackbuilds-5b9655bdc6c05a454777c4e1a56ec4d8453a5c0a.tar.gz |
misc/jmri: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
-rw-r--r-- | misc/jmri/jmri.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
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 |