# Maintainer: Natanael Copa pkgname=jsoncpp pkgver=1.9.8 pkgrel=0 pkgdesc="JSON C++ library" url="https://github.com/open-source-parsers/jsoncpp" arch="all" license="Public-Domain" makedepends="meson" subpackages="$pkgname-static $pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/open-source-parsers/jsoncpp/archive/$pkgver.tar.gz" build() { abuild-meson \ --default-library=both \ . output meson compile -C output } check() { # Test timeout increased for passing the loongarch64 CI meson test --print-errorlogs -C output --timeout-multiplier 10 } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output } sha512sums=" 849957d9c87edc1d375698a9ea2709b7304cabc2b05ba180dc09f68653e32316e1ae4fe0108ab63ec7b56d255ccbc6ccf8715cf8396c1438edda775bec74b05b jsoncpp-1.9.8.tar.gz "