pantry/projects/msgpack.org/package.yml

39 lines
899 B
YAML
Raw Normal View History

2023-07-01 00:30:26 +03:00
distributable:
url: https://github.com/msgpack/msgpack-c/releases/download/c-{{version}}/msgpack-c-{{version}}.tar.gz
strip-components: 1
versions:
github: msgpack/msgpack-c
strip: /^cpp-/
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
cmake.org: '*'
google.com/googletest: '*'
script:
- cmake -S . -B build $ARGS
- cmake --build build
- cmake --install build
env:
ARGS:
- -DMSGPACK_BUILD_TESTS=OFF
- -DCMAKE_INSTALL_PREFIX={{prefix}}
- -DCMAKE_INSTALL_LIBDIR=lib
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_FIND_FRAMEWORK=LAST
- -DCMAKE_VERBOSE_MAKEFILE=ON
- -Wno-dev
- -DBUILD_TESTING=OFF
test:
dependencies:
tea.xyz/gx/cc: c99
freedesktop.org/pkg-config: '*'
script:
- cc test.c -lmsgpack-c -o test
- ./test
- pkg-config --modversion msgpack-c | grep {{version}}