# Contributor: Oleg Titov # Contributor: Grigory Kirillov # Maintainer: Haelwenn (lanodan) Monnier pkgname=gumbo-parser pkgver=0.12.0 pkgrel=2 pkgdesc="An HTML5 parsing library in pure C99" url="https://codeberg.org/grisha/gumbo-parser" arch="all" license="Apache-2.0" makedepends="libtool m4 automake autoconf gtest-dev" checkdepends="gtest" subpackages="$pkgname-static $pkgname-dev $pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://codeberg.org/grisha/gumbo-parser/archive/$pkgver.tar.gz" builddir="$srcdir/gumbo-parser" prepare() { default_prepare ./autogen.sh } build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var make } check() { make -k check } package() { make DESTDIR="$pkgdir" install install -Dm 644 -t "$pkgdir/usr/share/licenses/$pkgname/" COPYING install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md } sha512sums=" 1ab8b25c9c78b5081b713b669587eff8020adb869b0e86fe5ad0949e129ea8b1b5f14ccfb80bd1a36389a43968680f037527b29979cb101846e16741e8666653 gumbo-parser-0.12.0.tar.gz "