diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:11:59 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:11:59 -0400 |
commit | 2adfa7c0d6b22e906b6d59cfbecc6ae3c5277ff4 (patch) | |
tree | 0e6d620b91120519cd9311989a1860b46a85f73f | |
parent | f6f7ca0bd9369863a915a0c3e073fa9bab521899 (diff) | |
download | slackbuilds-2adfa7c0d6b22e906b6d59cfbecc6ae3c5277ff4.tar.gz |
multimedia/smplayer: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
-rw-r--r-- | multimedia/smplayer/smplayer.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
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 |