diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:01:34 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:01:34 -0400 |
commit | d15e101736a3c503db5f060e72212e43496da9b3 (patch) | |
tree | a9b1fdca2cc193cec658ed57ed2e0c5a9dbb8a69 /desktop/synergy-plus | |
parent | 52d496269f350d8fa7288e6d3d50c752299a8292 (diff) | |
download | slackbuilds-d15e101736a3c503db5f060e72212e43496da9b3.tar.gz |
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.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/desktop/synergy-plus/synergy-plus.SlackBuild b/desktop/synergy-plus/synergy-plus.SlackBuild index 66dc5fc05a..6754bcc6da 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 |