aboutsummaryrefslogtreecommitdiff
path: root/system/yakuake
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:17:17 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:17:17 -0400
commit7729a4ef2e387dbe9d96787b40a4d1e65ea889db (patch)
tree2de8d4a673d7057ac22a6741155d4580be6476cc /system/yakuake
parent2f898172f1f7397eb0b8a832c114f5160e3fe362 (diff)
system/yakuake: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/yakuake')
-rw-r--r--system/yakuake/yakuake.SlackBuild18
1 files changed, 12 insertions, 6 deletions
diff --git a/system/yakuake/yakuake.SlackBuild b/system/yakuake/yakuake.SlackBuild
index 357afea0b4f2..c0ea98539ef2 100644
--- a/system/yakuake/yakuake.SlackBuild
+++ b/system/yakuake/yakuake.SlackBuild
@@ -7,10 +7,19 @@
PRGNAM=yakuake
VERSION=2.9.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
@@ -22,15 +31,12 @@ if [ $ARCH = "i486" ]; then
elif [ $ARCH = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
-elif [ $ARCH = "s390" ]; then
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
elif [ $ARCH = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
- echo "Unrecognized architecture type! Check the script: $0"
- exit 1
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -e