aboutsummaryrefslogtreecommitdiff
path: root/audio/tuxguitar/tuxguitar.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/tuxguitar/tuxguitar.SlackBuild')
-rw-r--r--audio/tuxguitar/tuxguitar.SlackBuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/audio/tuxguitar/tuxguitar.SlackBuild b/audio/tuxguitar/tuxguitar.SlackBuild
index 1b5fc10a18602..46a951c72c261 100644
--- a/audio/tuxguitar/tuxguitar.SlackBuild
+++ b/audio/tuxguitar/tuxguitar.SlackBuild
@@ -24,10 +24,16 @@
PRGNAM=tuxguitar
VERSION=1.1
-ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM