diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:01:26 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:01:26 -0400 |
commit | 1685bbc9186de304234fbc43304edd59ba002c0f (patch) | |
tree | efeb046a1a3529770957585cd15d36772daa045a /desktop/qtwitter/qtwitter.SlackBuild | |
parent | 2ae321c1872ffb8f5b8fedec1510d94daf00c619 (diff) |
desktop/qtwitter: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'desktop/qtwitter/qtwitter.SlackBuild')
-rw-r--r-- | desktop/qtwitter/qtwitter.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/desktop/qtwitter/qtwitter.SlackBuild b/desktop/qtwitter/qtwitter.SlackBuild index dfaeefcb8155e..3416ed813ad81 100644 --- a/desktop/qtwitter/qtwitter.SlackBuild +++ b/desktop/qtwitter/qtwitter.SlackBuild @@ -7,10 +7,19 @@ PRGNAM=qtwitter VERSION=${VERSION:-0.10.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 @@ -25,6 +34,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e |