libraries/tsocks: Script cleanup and fix documentation

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2013-11-14 22:12:28 +07:00 committed by Robby Workman
parent 18578fcf23
commit d03090b75d

View file

@ -28,12 +28,10 @@ SRCVERSION=${SRCVERSION:-1.8}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@ -43,7 +41,7 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
DOCS="COPYING ChangeLog FAQ tsocks.conf.{simple,complex}.example"
DOCS="COPYING ChangeLog FAQ tsocks.conf.simple.example tsocks.conf.complex.example"
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"