# Template file for 'ada'
pkgname=ada
version=3.1.0
revision=1
build_style=cmake
# They all pull in CPM - CMake's missing package manager
configure_args="-DADA_TESTING=OFF -DADA_BENCHMARKS=OFF -DADA_TOOLS=OFF
 -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=c93255bd9d3a5fa890843a34fbe9f7d2e233eea4b0c4075d401c32ac8e80a9df

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/*.so"
	}
}
