diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:03:56 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:03:56 -0400 |
commit | f2c2c438d31c41d56397a8b05ce17fc2d603ea04 (patch) | |
tree | ab23effc156a76d8839773a01b03e647c71f787b /games | |
parent | 265e1772eceab68cb1e1632cc05b9061894dad22 (diff) | |
download | slackbuilds-f2c2c438d31c41d56397a8b05ce17fc2d603ea04.tar.gz |
games/Chatbot-Eliza: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r-- | games/Chatbot-Eliza/Chatbot-Eliza.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/games/Chatbot-Eliza/Chatbot-Eliza.SlackBuild b/games/Chatbot-Eliza/Chatbot-Eliza.SlackBuild index 5de0f054ef..3e1f610e9e 100644 --- a/games/Chatbot-Eliza/Chatbot-Eliza.SlackBuild +++ b/games/Chatbot-Eliza/Chatbot-Eliza.SlackBuild @@ -8,10 +8,19 @@ PRGNAM=Chatbot-Eliza VERSION=${VERSION:-1.04} -ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$( uname -m ) ;; + esac +fi + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM |