void-packages/srcpkgs/libuv/template

34 lines
936 B
Bash

# Template file for 'libuv'
pkgname=libuv
version=1.49.2
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=2e910e668e5daf1be6a5195a696985d7200adfa5c4d3400ee7b3355affdcf52c
# the tests fail when run as root and as such break in the CI containers
make_check=ci-skip
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"
}
}