diff options
Diffstat (limited to 'source/n/tin/tin.SlackBuild')
-rwxr-xr-x | source/n/tin/tin.SlackBuild | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/source/n/tin/tin.SlackBuild b/source/n/tin/tin.SlackBuild index 1339dc37..a344150d 100755 --- a/source/n/tin/tin.SlackBuild +++ b/source/n/tin/tin.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright 2008, 2009 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2008, 2009, 2010, 2011 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -21,10 +21,20 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -VERSION=1.8.2 -ARCH=${ARCH:-x86_64} +PKGNAM=tin +VERSION=${VERSION:-$(echo $PKGNAM-*.tar.bz2 | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} BUILD=${BUILD:-2} +# 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-tin @@ -49,7 +59,7 @@ find . \ --with-ispell=/usr/bin/ispell \ --with-defaults-dir=/etc/tin \ --with-libdir=/var/lib/news \ - --with-ncurses + --with-screen=ncursesw make clean make build || exit 1 make install DESTDIR=$PKG || exit 1 |