projects/aports·blob master · refs

31 lines · 836 B

1# Maintainer: Natanael Copa <[email protected]>
2pkgname=jsoncpp
3pkgver=1.9.8
4pkgrel=0
5pkgdesc="JSON C++ library"
6url="https://github.com/open-source-parsers/jsoncpp"
7arch="all"
8license="Public-Domain"
9makedepends="meson"
10subpackages="$pkgname-static $pkgname-dev"
11source="$pkgname-$pkgver.tar.gz::https://github.com/open-source-parsers/jsoncpp/archive/$pkgver.tar.gz"
12
13build() {
14 abuild-meson \
15 --default-library=both \
16 . output
17 meson compile -C output
18}
19
20check() {
21 # Test timeout increased for passing the loongarch64 CI
22 meson test --print-errorlogs -C output --timeout-multiplier 10
23}
24
25package() {
26 DESTDIR="$pkgdir" meson install --no-rebuild -C output
27}
28
29sha512sums="
30849957d9c87edc1d375698a9ea2709b7304cabc2b05ba180dc09f68653e32316e1ae4fe0108ab63ec7b56d255ccbc6ccf8715cf8396c1438edda775bec74b05b jsoncpp-1.9.8.tar.gz
31"