summaryrefslogtreecommitdiff
path: root/source/xap/electricsheep/electricsheep.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/xap/electricsheep/electricsheep.SlackBuild')
-rwxr-xr-xsource/xap/electricsheep/electricsheep.SlackBuild16
1 files changed, 14 insertions, 2 deletions
diff --git a/source/xap/electricsheep/electricsheep.SlackBuild b/source/xap/electricsheep/electricsheep.SlackBuild
index 1ed540cd..69ab99d0 100755
--- a/source/xap/electricsheep/electricsheep.SlackBuild
+++ b/source/xap/electricsheep/electricsheep.SlackBuild
@@ -34,8 +34,17 @@
PRGNAM=electricsheep
VERSION=${VERSION:-20090306}
-ARCH=${ARCH:-x86_64}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
+
+# Automatically determine the architecture we're building on:
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) export ARCH=i486 ;;
+ arm*) export ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) export ARCH=$( uname -m ) ;;
+ esac
+fi
# Where do we look for sources?
SRCDIR=$(cd $(dirname $0); pwd)
@@ -116,6 +125,9 @@ case "$ARCH" in
armel) SLKCFLAGS="-O2 -march=armv4t"
SLKLDFLAGS=""; LIBDIRSUFFIX=""
;;
+ *) SLKCFLAGS="-O2"
+ SLKLDFLAGS=""; LIBDIRSUFFIX=""
+ ;;
esac
# Create working directories: