summaryrefslogtreecommitdiff
path: root/system/bootchart
diff options
context:
space:
mode:
authordsomero <xgizzmo@slackbuilds.org>2011-05-01 10:31:35 -0400
committerRobby Workman <rworkman@slackbuilds.org>2011-05-03 09:08:24 -0500
commit4253bb1c971c1dde4ba2af0dc93d1ae9025616fc (patch)
treecd3576732c6a4c391e28ac7fdb2fdf99b9d7de89 /system/bootchart
parent839158abf03189f5a019edeced82aa4db67b6876 (diff)
downloadslackbuilds-4253bb1c971c1dde4ba2af0dc93d1ae9025616fc.tar.gz
system/bootchart: ARCH fixes and cleanup.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/bootchart')
-rw-r--r--system/bootchart/bootchart.SlackBuild9
1 files changed, 8 insertions, 1 deletions
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