diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:00:58 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:00:58 -0400 |
commit | 99fb04657743c8acd5e4c99d06c3f01a55cf4580 (patch) | |
tree | 1060c4b1b849f6f1a12e3695f670308d4f189fe7 | |
parent | 8b68d96e02dec5938859477d5d4f19614a8e700f (diff) |
desktop/dekorator: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
-rw-r--r-- | desktop/dekorator/dekorator.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/desktop/dekorator/dekorator.SlackBuild b/desktop/dekorator/dekorator.SlackBuild index b8b0ff2a61f17..68c0652c04816 100644 --- a/desktop/dekorator/dekorator.SlackBuild +++ b/desktop/dekorator/dekorator.SlackBuild @@ -24,10 +24,19 @@ PRGNAM=dekorator VERSION=${VERSION:-0.5.1} -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 |