diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2010-05-19 21:48:03 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-21 01:31:28 -0500 |
commit | 7b2f7a5d57c014228bbbbcce7e8116324d6e6729 (patch) | |
tree | cdd37588b780c48f78eefbbd422f478d4c0a25ac /graphics/qtpfsgui/qtpfsgui.SlackBuild | |
parent | 35521a2da28d8d9de31ef593ec7f4623f404e964 (diff) | |
download | slackbuilds-7b2f7a5d57c014228bbbbcce7e8116324d6e6729.tar.gz |
graphics/qtpfsgui: Miscellaneous cleanups
Diffstat (limited to 'graphics/qtpfsgui/qtpfsgui.SlackBuild')
-rw-r--r-- | graphics/qtpfsgui/qtpfsgui.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/graphics/qtpfsgui/qtpfsgui.SlackBuild b/graphics/qtpfsgui/qtpfsgui.SlackBuild index 044d69815d..22a2b6b99d 100644 --- a/graphics/qtpfsgui/qtpfsgui.SlackBuild +++ b/graphics/qtpfsgui/qtpfsgui.SlackBuild @@ -6,10 +6,19 @@ PRGNAM=qtpfsgui VERSION=1.9.2 -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) export ARCH=i486 ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export 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 |