diff options
Diffstat (limited to 'multimedia/smplayer/smplayer.SlackBuild')
-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 |