pantry/projects/cmocka.org/package.yml

38 lines
808 B
YAML
Raw Normal View History

distributable:
url: https://cmocka.org/files/{{version.marketing}}/cmocka-{{version}}.tar.xz
strip-components: 1
versions:
gitlab: cmocka/cmocka/tags
strip:
- /^cmocka-/
build:
dependencies:
cmake.org: '*'
working-directory: build
script:
- cmake .. $ARGS
- make --jobs {{ hw.concurrency }}
- make --jobs {{ hw.concurrency }} install
2023-09-30 19:15:42 +03:00
env:
ARGS:
- -DCMAKE_INSTALL_PREFIX={{prefix}}
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_VERBOSE_MAKEFILE=ON
- -Wno-dev
- -DBUILD_TESTING=OFF
- -DWITH_STATIC_LIB=ON
- -DWITH_CMOCKERY_SUPPORT=ON
- -DUNIT_TESTING=ON
test:
dependencies:
freedesktop.org/pkg-config: '*'
script:
- pkg-config --modversion cmocka | grep {{version}}
- cc test.c -lcmocka -o test
2023-09-30 19:15:42 +03:00
- ./test