# Template file for 'libnetfilter_conntrack'
pkgname=libnetfilter_conntrack
version=1.0.8
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="libnfnetlink-devel libmnl-devel"
short_desc="Library providing an API to the in-kernel connection tracking table"
maintainer="Anthony Iliopoulos <ailiop@altatus.com>"
license="GPL-2.0-or-later"
homepage="http://www.netfilter.org/projects/libnetfilter_conntrack/index.html"
distfiles="http://www.netfilter.org/projects/${pkgname}/files/${pkgname}-${version}.tar.bz2"
checksum=0cd13be008923528687af6c6b860f35392d49251c04ee0648282d36b1faec1cf

pre_configure() {
	sed -i 's/u_int\([0-9]*\)_t/uint\1_t/' $(find -name '*.[ch]')
}

libnetfilter_conntrack-devel_package() {
	depends="${sourcepkg}>=${version}_${revision} libnfnetlink-devel"
	short_desc+=" -- development files"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.so"
		vmove usr/lib/pkgconfig
	}
}
