summaryrefslogtreecommitdiff
path: root/development/nvi/nvi.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-10-16 22:06:53 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-10-16 22:08:36 +0700
commit6ee46302b3e450e57f563808786af9ee4bb4cd1c (patch)
tree2800f3c0fa3ba803dd9bccc6e08b4a85d323e47a /development/nvi/nvi.SlackBuild
parent9e36bcdcc5b44a6289286caae9beeca041b25d9a (diff)
downloadslackbuilds-6ee46302b3e450e57f563808786af9ee4bb4cd1c.tar.gz
development/nvi: Remove --enable-threads parameter.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/nvi/nvi.SlackBuild')
-rw-r--r--development/nvi/nvi.SlackBuild21
1 files changed, 9 insertions, 12 deletions
diff --git a/development/nvi/nvi.SlackBuild b/development/nvi/nvi.SlackBuild
index c208be4d77..6ee6d5cb8b 100644
--- a/development/nvi/nvi.SlackBuild
+++ b/development/nvi/nvi.SlackBuild
@@ -24,12 +24,12 @@
PRGNAM=nvi
VERSION=${VERSION:-1.81.6}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -41,8 +41,8 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -65,10 +65,10 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Apply patches to eliminate bogus "DB_CREATE must be specified to create databases." error message on exit
patch -p1 < $CWD/patches/nvi.diffs
@@ -81,7 +81,6 @@ cd build.unix
--sysconfdir=/etc \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
- --enable-threads \
--enable-widechar \
--disable-static \
--program-prefix="n" \
@@ -100,9 +99,7 @@ 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
+cp -a Changes LICENSE README* TODO docs/html $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install