pantry/projects/github.com/open-source-parsers/jsoncpp/package.yml
Max Howell 81e7a5e16f
pkgx
2023-10-01 14:44:42 -04:00

27 lines
577 B
YAML

distributable:
url: https://github.com/open-source-parsers/jsoncpp/archive/{{version}}.tar.gz
strip-components: 1
versions:
github: open-source-parsers/jsoncpp
build:
dependencies:
mesonbuild.com: '*'
ninja-build.org: '*'
script: |
meson setup build $ARGS
meson compile -C build --verbose
meson install -C build
env:
ARGS:
- --prefix="{{prefix}}"
- --libdir="{{prefix}}/lib"
- --buildtype=release
- --wrap-mode=nofallback
test:
dependencies:
script: |
g++ -std=c++11 ./test.cpp -o test -ljsoncpp
./test