# Template file for 'libuv'
pkgname=libuv
version=1.52.1
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config"
short_desc="Multi-platform support library with a focus on asynchronous I/O"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="MIT, BSD-2-Clause, ISC"
homepage="https://libuv.org/"
changelog="https://raw.githubusercontent.com/libuv/libuv/v1.x/ChangeLog"
distfiles="https://dist.libuv.org/dist/v${version}/libuv-v${version}-dist.tar.gz"
checksum=c5f14915e2fa7b83b6111c3bc477920559499e10d95f852707420c8725b82d6a

LDFLAGS="-pthread"

post_install() {
	vlicense LICENSE
	vlicense LICENSE-extra
}

libuv-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"
	}
}
