# Template file for 'libev'
pkgname=libev
version=4.22
revision=1
build_style=gnu-configure
short_desc="High-performance event loop loosely modelled after libevent"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2, BSD"
homepage="http://software.schmorp.de/pkg/${pkgname}.html"
distfiles="http://dist.schmorp.de/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=736079e8ac543c74d59af73f9c52737b3bfec9601f020bf25a87a4f4d0f01bd6

post_install() {
	# Conflicts with libevent, not necessary.
	rm -f ${DESTDIR}/usr/include/event.h
}

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