aboutsummaryrefslogtreecommitdiff
path: root/network/etherape
diff options
context:
space:
mode:
authordsomero <xgizzmo@slackbuilds.org>2011-05-01 10:29:49 -0400
committerRobby Workman <rworkman@slackbuilds.org>2011-05-03 09:08:23 -0500
commit6e6da98392cd2e3427e779b2a5ed0687957be22f (patch)
treee25870687e0a88a81c5d17fdfea37a41001b2acd /network/etherape
parentd657a00a5a02a93b007601a521873e01027f6e46 (diff)
network/etherape: ARCH fixes and cleanup.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network/etherape')
-rw-r--r--network/etherape/etherape.SlackBuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/network/etherape/etherape.SlackBuild b/network/etherape/etherape.SlackBuild
index 7724fe123062a..2bc0859c25e66 100644
--- a/network/etherape/etherape.SlackBuild
+++ b/network/etherape/etherape.SlackBuild
@@ -5,10 +5,17 @@
PRGNAM=etherape
VERSION=${VERSION:-0.9.9}
-ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM