summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2010-05-20 12:37:00 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-05-21 01:10:42 -0500
commit4b54bac210454ec2310d38bf64d88961dcd61784 (patch)
tree662f39296e8c1036125daf46d4c617a39f78c3d3 /desktop
parentf6551700b6739fd557129893dbcb53fc0085d601 (diff)
downloadslackbuilds-4b54bac210454ec2310d38bf64d88961dcd61784.tar.gz
desktop/xfce4-datetime-plugin: Miscellaneous cleanups.
Diffstat (limited to 'desktop')
-rw-r--r--desktop/xfce4-datetime-plugin/xfce4-datetime-plugin.SlackBuild16
1 files changed, 14 insertions, 2 deletions
diff --git a/desktop/xfce4-datetime-plugin/xfce4-datetime-plugin.SlackBuild b/desktop/xfce4-datetime-plugin/xfce4-datetime-plugin.SlackBuild
index 9c3f8ce4cb..7219829ff0 100644
--- a/desktop/xfce4-datetime-plugin/xfce4-datetime-plugin.SlackBuild
+++ b/desktop/xfce4-datetime-plugin/xfce4-datetime-plugin.SlackBuild
@@ -24,10 +24,19 @@
PRGNAM=xfce4-datetime-plugin
VERSION=${VERSION:-0.6.1}
-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
@@ -50,7 +62,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find . \