diff options
Diffstat (limited to 'source/a/mtx/mtx.SlackBuild')
-rwxr-xr-x | source/a/mtx/mtx.SlackBuild | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/source/a/mtx/mtx.SlackBuild b/source/a/mtx/mtx.SlackBuild index c17d11769..6e648f039 100755 --- a/source/a/mtx/mtx.SlackBuild +++ b/source/a/mtx/mtx.SlackBuild @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2009 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2009, 2010 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -27,9 +27,18 @@ # ftp://ftp.badtux.net/pub/storage/mtx PACKAGE=mtx -VERSION=1.3.9 -ARCH=${ARCH:-x86_64} -BUILD=${BUILD:-2} +VERSION=1.3.12 +BUILD=${BUILD:-1} + +# 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} |