diff options
Diffstat (limited to 'source/a/tree/tree.SlackBuild')
-rwxr-xr-x | source/a/tree/tree.SlackBuild | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/source/a/tree/tree.SlackBuild b/source/a/tree/tree.SlackBuild index d20c3c1eb..540b20472 100755 --- a/source/a/tree/tree.SlackBuild +++ b/source/a/tree/tree.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright 2007-2009 Patrick J. Volkerding, Sebeka, Minnesota, USA +# Copyright 2007-2010 Patrick J. Volkerding, Sebeka, Minnesota, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -20,10 +20,19 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -VERSION=1.5.2.2 -ARCH=${ARCH:-x86_64} +VERSION=1.5.3 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} PKG=$TMP/package-tree @@ -50,7 +59,7 @@ mkdir -p $PKG/usr/man/man1 cat man/tree.1 | gzip -9c > $PKG/usr/man/man1/tree.1.gz mkdir -p $PKG/usr/doc/tree-$VERSION cp -a \ - CHANGES LICENSE README \ + CHANGES LICENSE README* \ $PKG/usr/doc/tree-$VERSION ( cd $PKG find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null |