# Template file for 'neatvi'
pkgname=neatvi
version=09
revision=1
build_style=gnu-makefile
short_desc="Small ex/vi editor"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="ISC"
homepage="http://litcave.rudi.ir/"
distfiles="https://github.com/litcave/${pkgname}/archive/${version}.tar.gz"
checksum=86ccff8e58a483e3d5cfcb71bec510726f2608cae7519ae9e97244b242af359f

alternatives="
 vi:ex:/usr/bin/neatex
 vi:vi:/usr/bin/neatvi
"

do_install() {
	vbin vi neatvi
	ln -s neatvi ${DESTDIR}/usr/bin/neatex
	sed -n '0,/\*\//p' <vi.c >LICENSE
	vlicense LICENSE
}
