From 2adfa7c0d6b22e906b6d59cfbecc6ae3c5277ff4 Mon Sep 17 00:00:00 2001 From: David Somero Date: Fri, 4 Jun 2010 01:11:59 -0400 Subject: multimedia/smplayer: Misc automated cleanups. Signed-off-by: David Somero --- multimedia/smplayer/smplayer.SlackBuild | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/multimedia/smplayer/smplayer.SlackBuild b/multimedia/smplayer/smplayer.SlackBuild index a4299135e9..5e61111ca8 100644 --- a/multimedia/smplayer/smplayer.SlackBuild +++ b/multimedia/smplayer/smplayer.SlackBuild @@ -24,7 +24,6 @@ PRGNAM=smplayer VERSION=${VERSION:-0.6.8} -ARCH=${ARCH:-i486} BUILD=${BUILD:-2} TAG=${TAG:-_SBo} @@ -32,6 +31,16 @@ TAG=${TAG:-_SBo} FREEVER=0.1.19 NONFVER=0.1.1 +# 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 -- cgit v1.2.3