aboutsummaryrefslogtreecommitdiff
path: root/business
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:00:50 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:00:50 -0400
commit3559a6fb3038ffb16da196fec16d4c24534482c7 (patch)
tree107c486d93ed491d746344159ed3f36d632bfb7f /business
parent8c3a7e039febb75e9db7ce0d8d511b72f7ee40ce (diff)
business/openerp-client: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'business')
-rw-r--r--business/openerp-client/openerp-client.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/business/openerp-client/openerp-client.SlackBuild b/business/openerp-client/openerp-client.SlackBuild
index 23b48bb3dba22..aaec2a3859577 100644
--- a/business/openerp-client/openerp-client.SlackBuild
+++ b/business/openerp-client/openerp-client.SlackBuild
@@ -24,10 +24,19 @@
PRGNAM=openerp-client
VERSION=5.0.4
-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