diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:14:03 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:14:03 -0400 |
commit | 6d4a9b3078838c045ebc390ec75839c611ab1d34 (patch) | |
tree | 84c22f7868c749859ca02028894814e235d4411d /network/psi | |
parent | b657f3e91d4382a05ebd6b6c6da41cbb8bff0fac (diff) |
network/psi: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network/psi')
-rw-r--r-- | network/psi/psi.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/network/psi/psi.SlackBuild b/network/psi/psi.SlackBuild index 3ea63d08e535d..1bf58ddacc2f9 100644 --- a/network/psi/psi.SlackBuild +++ b/network/psi/psi.SlackBuild @@ -6,10 +6,19 @@ PRGNAM=psi VERSION=${VERSION:-0.14} -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 |