aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordsomero <xgizzmo@slackbuilds.org>2011-05-01 10:28:06 -0400
committerRobby Workman <rworkman@slackbuilds.org>2011-05-03 09:08:23 -0500
commitc872b4bd4ccaa8b79cf4e2c69bcc1995d15040c5 (patch)
treee80c3bd707446666049c33aeab59051547638126
parent9864a013ca05cbc6f9b7a55bb5d4ac1ab9c174df (diff)
libraries/live555: ARCH fixes and cleanup.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
-rw-r--r--libraries/live555/live555.SlackBuild12
1 files changed, 10 insertions, 2 deletions
diff --git a/libraries/live555/live555.SlackBuild b/libraries/live555/live555.SlackBuild
index 4c6e8e2ac4251..a102a5cd5846b 100644
--- a/libraries/live555/live555.SlackBuild
+++ b/libraries/live555/live555.SlackBuild
@@ -7,12 +7,20 @@
# Modified for SlackBuilds.org by Erik Hanson <erik@slackbuilds.org>
PRGNAM=live555
-SRCNAM=live
VERSION=${VERSION:-2010.01.11}
-ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+SRCNAM=live
+
+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