mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
26 lines
562 B
YAML
26 lines
562 B
YAML
distributable:
|
|
url: https://s3.amazonaws.com/json-c_releases/releases/json-c-{{ version.raw }}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: json-c/json-c/tags
|
|
strip:
|
|
- /^json-c-/
|
|
- /-\d{8}/ # calver
|
|
|
|
build:
|
|
dependencies:
|
|
cmake.org: 3
|
|
tea.xyz/gx/cc: c99
|
|
tea.xyz/gx/make: '*'
|
|
working-directory: build
|
|
script: |
|
|
cmake .. -DCMAKE_INSTALL_PREFIX="{{prefix}}" -DCMAKE_BUILD_TYPE=Release
|
|
make --jobs {{ hw.concurrency }} install
|
|
|
|
test:
|
|
dependencies:
|
|
tea.xyz/gx/cc: c99
|
|
script: |
|
|
cc fixture.c -ljson-c
|
|
./a.out
|