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