30 lines
810 B
Bash
30 lines
810 B
Bash
# Template file for 'ada'
|
|
pkgname=ada
|
|
version=2.9.2
|
|
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=f41575ad7eec833afd9f6a0d6101ee7dc2f947fdf19ae8f1b54a71d59f4ba5ec
|
|
|
|
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"
|
|
}
|
|
}
|