# Template file for 'iptstate'
pkgname=iptstate
version=2.3.0
revision=1
build_style=gnu-makefile
hostmakedepends="pkg-config"
makedepends="libnetfilter_conntrack-devel ncurses-devel"
short_desc="Display iptables state"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="Zlib"
homepage="https://github.com/jaymzh/iptstate"
distfiles="https://github.com/jaymzh/iptstate/archive/refs/tags/v${version}.tar.gz"
checksum=d3e6a3843064ace8e70d72152ce6408bb1b4a9fa852122cdb3c87376731dee90

post_extract() {
	vsed -i -e 's/--libs ncurses /--libs ncursesw /' Makefile
}

do_install() {
	vbin iptstate
	vman iptstate.8
	vman iptstate.8
	vlicense LICENSE
}
