#!/bin/bash # nvi # # Douglas Thrift # # $Id$ name=nvi version=1.81.5 revision=0 categories=(base editors) description='New vi Editor from 4.4BSD' url='http://www.kotnet.org/~skimo/nvi/' depends=('base/db' 'base/ncurses') sources=(http://www.kotnet.org/~skimo/nvi/devel/$name-$version.tar.bz2 nvi.patch) function build() { gnu_patch nvi.patch || return $? sourcedir=$name-$version/dist gnu_configure_builddir --prefix=/usr --program-prefix=n --localstatedir=/var --mandir=/usr/share/man || return $? #--enable-widechar for dir in $package/usr/{bin,share/man/@(cat|man)?}; do cd $dir || return $? for file in @(n*); do case $file in (*.?) ln -sv $file ${file:1} || return $? ;; (*) ln -v $file ${file:1} || return $? ;; esac done done }