diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:00:51 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:00:51 -0400 |
commit | 0d3c067e9fa4b40602e28757b3d62af99b71c652 (patch) | |
tree | 2fc6c2f6350b34b2a2f0e0ac8e5eb2fef5a0b33f /desktop/CurseTheWeather/CurseTheWeather.SlackBuild | |
parent | 6f536711342b7a8a079957ed4403609d1bbd465f (diff) |
desktop/CurseTheWeather: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'desktop/CurseTheWeather/CurseTheWeather.SlackBuild')
-rw-r--r-- | desktop/CurseTheWeather/CurseTheWeather.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/desktop/CurseTheWeather/CurseTheWeather.SlackBuild b/desktop/CurseTheWeather/CurseTheWeather.SlackBuild index c17c975dcc5a5..e4032186de4d6 100644 --- a/desktop/CurseTheWeather/CurseTheWeather.SlackBuild +++ b/desktop/CurseTheWeather/CurseTheWeather.SlackBuild @@ -26,10 +26,19 @@ PRGNAM=CurseTheWeather VERSION=0.5 -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 |