mirror of
https://github.com/ivabus/pantry
synced 2024-11-14 04:25:08 +03:00
39 lines
No EOL
899 B
YAML
39 lines
No EOL
899 B
YAML
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}}
|
|
|