# Contributor: William Pitcock # Maintainer: William Pitcock pkgname=jsoncpp pkgver=1.8.3 pkgrel=0 pkgdesc="JSON C++ library" url="https://github.com/open-source-parsers/jsoncpp" arch="all" license="PublicDomain" makedepends="meson" subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/open-source-parsers/jsoncpp/archive/$pkgver.tar.gz secure_memory.patch " builddir="$srcdir"/$pkgname-$pkgver build() { cd "$builddir" # we cannot use cmake since jsoncpp is a dependency for cmake which # means we would get circular buildtime deps meson --prefix /usr --libdir /usr/lib --buildtype release --default-library shared . build ninja -C build } check() { cd "$builddir" ninja -C build test } package() { cd "$builddir" DESTDIR="$pkgdir" ninja -C build install } sha512sums="a5170ccbc440c1bd2b365e34f7367a55731d4fa86b2d323d11431cead771127364bad9d8e2e59dcbe41bc111d11a5da94988dec5e40b9119f793f43e487d7429 jsoncpp-1.8.3.tar.gz 65aefb90d9df23c44600cfa483d3eb4eb9c7d657650facff61aef11030361fd386003306e7d2e7ffbd0bea00dfda0ef4be10ce6396b6bf858ee1b65157331beb secure_memory.patch"