aboutsummaryrefslogtreecommitdiff
path: root/desktop/synergy-plus
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:01:34 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:01:34 -0400
commitd15e101736a3c503db5f060e72212e43496da9b3 (patch)
treea9b1fdca2cc193cec658ed57ed2e0c5a9dbb8a69 /desktop/synergy-plus
parent52d496269f350d8fa7288e6d3d50c752299a8292 (diff)
desktop/synergy-plus: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'desktop/synergy-plus')
-rw-r--r--desktop/synergy-plus/synergy-plus.SlackBuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/desktop/synergy-plus/synergy-plus.SlackBuild b/desktop/synergy-plus/synergy-plus.SlackBuild
index 66dc5fc05aa79..6754bcc6dac06 100644
--- a/desktop/synergy-plus/synergy-plus.SlackBuild
+++ b/desktop/synergy-plus/synergy-plus.SlackBuild
@@ -24,10 +24,19 @@
PRGNAM=synergy-plus
VERSION=${VERSION:-1.3.4}
-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
@@ -48,6 +57,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -e