From adbde3e07b5cde094c8b53d73a0b078692811f4d Mon Sep 17 00:00:00 2001 From: dsomero Date: Sun, 1 May 2011 10:30:27 -0400 Subject: network/leechcraft: ARCH fixes and cleanup. Signed-off-by: dsomero --- network/leechcraft/leechcraft.SlackBuild | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/network/leechcraft/leechcraft.SlackBuild b/network/leechcraft/leechcraft.SlackBuild index 0e4be2543ded..5a6c99231e0c 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 -- cgit v1.2.3