# Template file for 'multitail'
pkgname=multitail
version=6.5.0
revision=1
build_style=gnu-makefile
makedepends="ncurses-devel"
checkdepends="clang-analyzer cppcheck perl"
short_desc="Tail multiple logfiles"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-only"
homepage="http://www.vanheusden.com/multitail"
distfiles="${homepage}/${pkgname}-${version}.tgz"
checksum=b29d5e77dfc663c7500f78da67de5d82d35d9417a4741a89a18ce9ee7bdba9ed
LDFLAGS='-lpanelw -lncursesw -lutil -lm'
CFLAGS='-funsigned-char -DLinux -DVERSION=\"\$(VERSION)\" -DCONFIG_FILE=\"\$(CONFIG_FILE)\" -DUTF8_SUPPORT'

post_extract() {
	sed -i 's,<ncursesw/,<,g' mt.h
}

do_install() {
	vbin multitail
	vman multitail.1
	vconf multitail.conf
}
