aboutsummaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authordsomero <xgizzmo@slackbuilds.org>2011-05-01 10:30:27 -0400
committerRobby Workman <rworkman@slackbuilds.org>2011-05-03 09:08:24 -0500
commitadbde3e07b5cde094c8b53d73a0b078692811f4d (patch)
tree2d1d9fb51227cf69a19a2a585a32e0a7208be951 /network
parent6e6da98392cd2e3427e779b2a5ed0687957be22f (diff)
network/leechcraft: ARCH fixes and cleanup.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r--network/leechcraft/leechcraft.SlackBuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/network/leechcraft/leechcraft.SlackBuild b/network/leechcraft/leechcraft.SlackBuild
index 0e4be2543dedd..5a6c99231e0c7 100644
--- a/network/leechcraft/leechcraft.SlackBuild
+++ b/network/leechcraft/leechcraft.SlackBuild
@@ -24,10 +24,17 @@
PRGNAM=leechcraft
VERSION=0.3.65
-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