summaryrefslogtreecommitdiff
path: root/desktop/thunar-vcs-plugin/thunar-vcs-plugin.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2010-05-19 11:44:47 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-05-21 01:17:12 -0500
commitdf1bd0558135716098b1ec5301b9945f267b7f92 (patch)
tree1b8e653d6f0cba9c0a6952c429b6f313679596d4 /desktop/thunar-vcs-plugin/thunar-vcs-plugin.SlackBuild
parentcc1b79afa5d0e18a0bfa9d77800e44086e4254da (diff)
downloadslackbuilds-df1bd0558135716098b1ec5301b9945f267b7f92.tar.gz
desktop/thunar-vcs-plugin: Miscellaneous cleanups.
Diffstat (limited to 'desktop/thunar-vcs-plugin/thunar-vcs-plugin.SlackBuild')
-rw-r--r--desktop/thunar-vcs-plugin/thunar-vcs-plugin.SlackBuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/desktop/thunar-vcs-plugin/thunar-vcs-plugin.SlackBuild b/desktop/thunar-vcs-plugin/thunar-vcs-plugin.SlackBuild
index b1663f78a3..5f35bb55c7 100644
--- a/desktop/thunar-vcs-plugin/thunar-vcs-plugin.SlackBuild
+++ b/desktop/thunar-vcs-plugin/thunar-vcs-plugin.SlackBuild
@@ -24,10 +24,19 @@
PRGNAM=thunar-vcs-plugin
VERSION=0.1.2
-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) 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/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