# Template file for 'nghttp3'
pkgname=nghttp3
version=1.16.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=776f59a99905c9a348846807b2e5ac9bb3485fc0f8c0250ba803018d5238a16e

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