summaryrefslogtreecommitdiff
path: root/source/kde/kdewebdev/tidy/tidy.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/kde/kdewebdev/tidy/tidy.SlackBuild')
-rwxr-xr-xsource/kde/kdewebdev/tidy/tidy.SlackBuild17
1 files changed, 14 insertions, 3 deletions
diff --git a/source/kde/kdewebdev/tidy/tidy.SlackBuild b/source/kde/kdewebdev/tidy/tidy.SlackBuild
index e487d95e..6d8c3a7d 100755
--- a/source/kde/kdewebdev/tidy/tidy.SlackBuild
+++ b/source/kde/kdewebdev/tidy/tidy.SlackBuild
@@ -1,5 +1,5 @@
#!/bin/sh
-# Copyright 2006, 2007, 2008, 2009 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2006, 2007, 2008, 2009, 2010 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,10 +22,19 @@
# This file is an example, so feel free to fix it if it gets out of date. :-)
PKGNAM=tidy
-VERSION=${VERSION:-20090604T2303}
-ARCH=${ARCH:-x86_64}
+VERSION=${VERSION:-20100503T2309}
BUILD=${BUILD:-1}
+# Automatically determine the architecture we're building on:
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) export ARCH=i486 ;;
+ arm*) export ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) export ARCH=$( uname -m ) ;;
+ esac
+fi
+
CWD=$(pwd)
TMP=${TMP:-/tmp}
PKG=$TMP/package-${PKGNAM}
@@ -36,6 +45,8 @@ elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+else
+ SLKCFLAGS="-O2"
fi
rm -rf $PKG