From 4253bb1c971c1dde4ba2af0dc93d1ae9025616fc Mon Sep 17 00:00:00 2001 From: dsomero Date: Sun, 1 May 2011 10:31:35 -0400 Subject: [PATCH] system/bootchart: ARCH fixes and cleanup. Signed-off-by: dsomero --- system/bootchart/bootchart.SlackBuild | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/system/bootchart/bootchart.SlackBuild b/system/bootchart/bootchart.SlackBuild index b93b73e773..5a83e5b62c 100644 --- a/system/bootchart/bootchart.SlackBuild +++ b/system/bootchart/bootchart.SlackBuild @@ -10,10 +10,17 @@ PRGNAM=bootchart VERSION=${VERSION:-0.9} -ARCH=${ARCH:-i486} BUILD=${BUILD:-2} 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