mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 00:45:07 +03:00
36 lines
828 B
YAML
36 lines
828 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:
|
||
|
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:
|
||
|
freedesktop.org/pkg-config: '*'
|
||
|
script:
|
||
|
- cc test.c -lmsgpack-c -o test
|
||
|
- ./test
|
||
|
- pkg-config --modversion msgpack-c | grep {{version}}
|
||
|
|