void-packages/srcpkgs/nvi/template

30 lines
859 B
Text

# Template file for 'nvi'
pkgname=nvi
version=1.81.6
revision=4
patch_args="-Np1"
build_style=gnu-configure
build_wrksrc=dist
configure_args="--enable-widechar --enable-threads --disable-static
vi_cv_path_preserve=/var/tmp"
makedepends="ncurses-devel db-devel"
short_desc="The Berkeley Vi Editor"
maintainer="Juan RP <xtraeme@gmail.com>"
license="BSD"
homepage="http://garage.linux.student.kuleuven.be/~skimo/nvi"
distfiles="${homepage}/devel/nvi-$version.tar.bz2"
checksum=3441b8e3247b2b6dd19b5fd38355fe6593b2a92e960ecb3dd00d676f63d06b59
if [ -n "$XBPS_CROSS_TRIPLET" ]; then
crossmakedepends="${makedepends}"
configure_args="${configure_args} vi_cv_sprintf_count=yes"
fi
pre_build() {
sed -i -e '/define.*_PATH_MSGCAT/ s/".*"/"\/usr\/share\/vi\/catalog\/"/' pathnames.h
}
post_install() {
# remove cat pages.
rm -rf ${DESTDIR}/usr/share/man/cat1
}