void-packages/srcpkgs/libuv/template

34 lines
936 B
Bash

# Template file for 'libuv'
pkgname=libuv
version=1.46.0
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=94f101111ef3209340d7f09c2aa150ddb4feabd2f9d87d47d9f5bded835b8094
# 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"
}
}