diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:03:50 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:03:50 -0400 |
commit | 8a49add8c74ee41915c018b1937c80455b91a18a (patch) | |
tree | c4bc49d46202fb54141df19a570ca66865bfd99f | |
parent | d11b07977c6c5a80a40cac883aeb5e5adae5abd7 (diff) |
development/xmlcopyeditor: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
-rw-r--r-- | development/xmlcopyeditor/xmlcopyeditor.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/development/xmlcopyeditor/xmlcopyeditor.SlackBuild b/development/xmlcopyeditor/xmlcopyeditor.SlackBuild index 5591ac7be08d5..22a499b43ae8e 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 |