# Template file for 'ada'
pkgname=ada
version=3.4.4
revision=1
build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=ON"
short_desc="WHATWG-compliant and fast URL parser written"
maintainer="John <me@johnnynator.dev>"
license="MIT OR Apache-2.0"
homepage="https://www.ada-url.com/"
distfiles="https://github.com/ada-url/ada/archive/refs/tags/v${version}.tar.gz"
checksum=77bc5bbc383ed098cc60266ad6ee912de2431bb62d89248c0e17c4e712dcdaf9

post_install() {
	vlicense LICENSE-APACHE
	vlicense LICENSE-MIT
}

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