{% set name = "json-c" %} {% set version = "0.16" %} package: name: {{ name|lower }} version: {{ version.split('-')[0] }} source: url: https://s3.amazonaws.com/json-c_releases/releases/json-c-{{ version }}.tar.gz sha256: 8e45ac8f96ec7791eaf3bb7ee50e9c2100bbbc87b8d0f1d030c5ba8a0288d96b build: number: 0 run_exports: - {{ pin_subpackage(name, max_pin='x.x') }} requirements: build: - gnuconfig # [unix] - {{ compiler('c') }} - cmake - make host: - msinttypes # [win and vc<=9] test: commands: - test -f ${PREFIX}/lib/libjson-c.a # [not win] - test -f ${PREFIX}/lib/libjson-c${SHLIB_EXT} # [not win] - if not exist %LIBRARY_BIN%/json-c.dll exit 1 # [win] - if not exist %LIBRARY_LIB%/json-c.lib exit 1 # [win] about: home: https://github.com/json-c/json-c/wiki license: MIT license_file: COPYING summary: A JSON implementation in C extra: recipe-maintainers: - ocefpaf - sodre - djsutherland