diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:12:47 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:12:47 -0400 |
commit | 6263b11ec99d1b60e305afc0901b63fbb8a7e252 (patch) | |
tree | cb2ddc449791479ad6fc6fe6990bf9a47e78e455 /network/fqterm/fqterm.SlackBuild | |
parent | aa2bb5d7f7c135d3f34a23c7862e7044930133d8 (diff) | |
download | slackbuilds-6263b11ec99d1b60e305afc0901b63fbb8a7e252.tar.gz |
network/fqterm: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network/fqterm/fqterm.SlackBuild')
-rw-r--r-- | network/fqterm/fqterm.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/network/fqterm/fqterm.SlackBuild b/network/fqterm/fqterm.SlackBuild index c4d1ad73bd..391511ce91 100644 --- a/network/fqterm/fqterm.SlackBuild +++ b/network/fqterm/fqterm.SlackBuild @@ -6,10 +6,19 @@ PRGNAM=fqterm VERSION=${VERSION:-0.9.6.8} -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 @@ -24,6 +33,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e |