diff options
Diffstat (limited to 'source/a/aaa_terminfo/aaa_terminfo.SlackBuild')
-rwxr-xr-x | source/a/aaa_terminfo/aaa_terminfo.SlackBuild | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/source/a/aaa_terminfo/aaa_terminfo.SlackBuild b/source/a/aaa_terminfo/aaa_terminfo.SlackBuild index a1e7d288..291215a9 100755 --- a/source/a/aaa_terminfo/aaa_terminfo.SlackBuild +++ b/source/a/aaa_terminfo/aaa_terminfo.SlackBuild @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright 2006, 2007, 2009 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2006, 2007, 2009, 2010, 2011 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,10 +22,19 @@ PKGNAM=aaa_terminfo # Note the version of ncurses in use: -VERSION=${VERSION:-5.7} -ARCH=${ARCH:-noarch} +VERSION=${VERSION:-5.8} 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 + if [ "$ARCH" = "x86_64" ]; then LIBDIRSUFFIX="64" else |