# Template file for 'vile'
pkgname=vile
version=9.8zb
revision=1
build_style=gnu-configure
configure_args="--disable-stripping"
hostmakedepends="flex"
makedepends="ncurses-devel"
short_desc="Text editor which is extremely compatible with vi like emacs"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://invisible-island.net/vile/vile.html"
changelog="https://invisible-island.net/vile/CHANGES.html"
distfiles="https://invisible-mirror.net/archives/vile/current/vile-${version}.tgz"
checksum=d6239e6b728fa9d0b49f526d8f0998d2db4b7a7dfc317273dbff7aea2a09ea31

if [ "$XBPS_TARGET_LIBC" = "glibc" ]; then
	makedepends+=" libxcrypt-devel"
fi

post_extract() {
	vsed -e 's/\[\[//g' -i filters/sh-filt.l
}

post_configure() {
	vsed -e '/^BUILD_/d' -i makefile
}
