void-packages/srcpkgs/nghttp3/template

29 lines
778 B
Bash

# Template file for 'nghttp3'
pkgname=nghttp3
version=1.7.0
revision=1
build_style=cmake
configure_args="-DENABLE_STATIC_LIB=OFF -DBUILD_TESTING=ON"
short_desc="HTTP/3 library written in C"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="MIT"
homepage="https://nghttp2.org/nghttp3/"
distfiles="https://github.com/ngtcp2/nghttp3/releases/download/v${version}/nghttp3-${version}.tar.xz"
checksum=b4eb6bceb99293d9a9df2031c1aad166af3d57b3e33655aca0699397b6f0d751
post_install() {
vlicense COPYING
rm -rf "${DESTDIR}/usr/share/doc"
}
nghttp3-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}