aboutsummaryrefslogtreecommitdiff
path: root/network/linuxdcpp
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:13:11 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:13:11 -0400
commit4faf9e06e07bf5fdff1008ad7c1c5d0e88f036c0 (patch)
tree20984efee50c58e398efe8dd16a2c587c924bd99 /network/linuxdcpp
parent5f0cc54061604401b14bdc89aa219a103682ba0a (diff)
network/linuxdcpp: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network/linuxdcpp')
-rw-r--r--network/linuxdcpp/linuxdcpp.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/network/linuxdcpp/linuxdcpp.SlackBuild b/network/linuxdcpp/linuxdcpp.SlackBuild
index 936388412fa6..e232a6f5a060 100644
--- a/network/linuxdcpp/linuxdcpp.SlackBuild
+++ b/network/linuxdcpp/linuxdcpp.SlackBuild
@@ -24,10 +24,19 @@
PRGNAM=linuxdcpp
VERSION=1.0.3
-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