summaryrefslogtreecommitdiff
path: root/desktop/dekorator
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:00:58 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:00:58 -0400
commit99fb04657743c8acd5e4c99d06c3f01a55cf4580 (patch)
tree1060c4b1b849f6f1a12e3695f670308d4f189fe7 /desktop/dekorator
parent8b68d96e02dec5938859477d5d4f19614a8e700f (diff)
downloadslackbuilds-99fb04657743c8acd5e4c99d06c3f01a55cf4580.tar.gz
desktop/dekorator: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'desktop/dekorator')
-rw-r--r--desktop/dekorator/dekorator.SlackBuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/desktop/dekorator/dekorator.SlackBuild b/desktop/dekorator/dekorator.SlackBuild
index b8b0ff2a61..68c0652c04 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