diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:13:55 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:13:55 -0400 |
commit | 256b6a3a4273ed813037a8ad07f18ec53da2664a (patch) | |
tree | f6c282f6b44f0bb0eb13fe351136b3a992bad38f /network | |
parent | 5b2f410f6bd2c06f078ecda95e58edc7dfb3c32f (diff) |
network/pidgin-otr: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r-- | network/pidgin-otr/pidgin-otr.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/network/pidgin-otr/pidgin-otr.SlackBuild b/network/pidgin-otr/pidgin-otr.SlackBuild index 83036c16f4f85..c86ff2f7517e6 100644 --- a/network/pidgin-otr/pidgin-otr.SlackBuild +++ b/network/pidgin-otr/pidgin-otr.SlackBuild @@ -24,10 +24,19 @@ PRGNAM=pidgin-otr VERSION=3.2.0 -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 @@ -42,6 +51,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e |