31 lines
825 B
Bash
31 lines
825 B
Bash
pkgname=ada
|
|
pkgver=3.3.0
|
|
pkgdesc="WHATWG-compliant and fast URL parser written in modern C++"
|
|
homepage="https://github.com/ada-url/ada"
|
|
license=("MIT" "Apache-2.0")
|
|
sources=("${pkgname}-${pkgver}.tar.gz")
|
|
urls=("https://github.com/ada-url/ada/archive/refs/tags/v${pkgver}.tar.gz")
|
|
sha512sums=("728bf278fcac51a8ffdf5571cb486e789cd49511674c61e354c802bbfaeea64598fb22cd28ef4b02eacdd42c1c3437f40666ca8dba8097e0ecebbae1095de77f")
|
|
|
|
src_prepare() {
|
|
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
|
}
|
|
|
|
src_build() {
|
|
local cmake_args=(
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
-DCMAKE_INSTALL_PREFIX=/usr
|
|
-DBUILD_SHARED_LIBS=ON
|
|
-DADA_TESTING=NO
|
|
-DADA_TOOLS=NO
|
|
)
|
|
cmake -B build "${cmake_args[@]}"
|
|
cmake --build build
|
|
}
|
|
|
|
src_install() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
|
|
# vim:ft=sh syn=sh et sw=2:
|