aboutsummaryrefslogtreecommitdiff
path: root/development/nvi
diff options
context:
space:
mode:
Diffstat (limited to 'development/nvi')
-rw-r--r--development/nvi/nvi.SlackBuild24
1 files changed, 10 insertions, 14 deletions
diff --git a/development/nvi/nvi.SlackBuild b/development/nvi/nvi.SlackBuild
index e83d26b9f6790..518b34077d9d6 100644
--- a/development/nvi/nvi.SlackBuild
+++ b/development/nvi/nvi.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for nvi
-# Copyright 2008-2011 Robby Workman Northport, Alabama (USA)
+# Copyright 2008-2012 Robby Workman Northport, Alabama (USA)
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=nvi
-VERSION=1.81.6
+VERSION=${VERSION:-1.81.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -87,25 +87,21 @@ cd build.unix
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
-cd -
+cd ..
# These are better as softlinks instead of hardlinks
-cd $PKG/usr/man/man1
- rm nex.1 nview.1
- ln -s nvi.1 nex.1
- ln -s nvi.1 nview.1
-cd -
+rm -f $PKG/usr/man/man1/{nex,nview}.1
+ln -s nvi.1 $PKG/usr/man/man1/nex.1
+ln -s nvi.1 $PKG/usr/man/man1/nview.1
-cd $PKG/usr/man
- rm -rf cat*
- find . -type f -exec gzip -9 {} \;
- for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
-cd -
+rm -rf $PKG/usr/man/cat*
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $(find $PKG/usr/man -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
Changes LICENSE README* TODO docs/html \
- $PKG/usr/doc/$PRGNAM-$VERSION
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install