void-packages/srcpkgs/ada/template

30 lines
810 B
Bash

# Template file for 'ada'
pkgname=ada
version=2.9.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=8b992f0ce9134cb4eafb74b164d2ce2cb3af1900902162713b0e0c5ab0b6acd8
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"
}
}