# Template file for 'libkqueue'
pkgname=libkqueue
version=2.0.4
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool"
short_desc="kqueue(2) compatibility library"
maintainer="Duncaen <duncaen@voidlinux.eu>"
license="ISC, BSD"
homepage="https://github.com/mheily/libkqueue"
distfiles="https://github.com/mheily/libkqueue/archive/v${version}.tar.gz"
checksum=9ad52f5425b0926823f37605876455574d7d39bb250a4b3b4c96d41e98465cf9

pre_configure() {
	autoreconf -fi
}

post_install() {
	vlicense LICENSE
}

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