summaryrefslogtreecommitdiff
path: root/development/xmlcopyeditor
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:03:50 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:03:50 -0400
commit8a49add8c74ee41915c018b1937c80455b91a18a (patch)
treec4bc49d46202fb54141df19a570ca66865bfd99f /development/xmlcopyeditor
parentd11b07977c6c5a80a40cac883aeb5e5adae5abd7 (diff)
downloadslackbuilds-8a49add8c74ee41915c018b1937c80455b91a18a.tar.gz
development/xmlcopyeditor: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'development/xmlcopyeditor')
-rw-r--r--development/xmlcopyeditor/xmlcopyeditor.SlackBuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/development/xmlcopyeditor/xmlcopyeditor.SlackBuild b/development/xmlcopyeditor/xmlcopyeditor.SlackBuild
index 5591ac7be0..22a499b43a 100644
--- a/development/xmlcopyeditor/xmlcopyeditor.SlackBuild
+++ b/development/xmlcopyeditor/xmlcopyeditor.SlackBuild
@@ -6,10 +6,19 @@
PRGNAM=xmlcopyeditor
VERSION=${VERSION:-1.2.0.6}
-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