pantry/projects/digip.org/jansson/package.yml
Lino Le Van 1a0a2f104c
+digip.org/jansson (#390)
* first attempt

* use gcc on linux

---------

Co-authored-by: Max Howell <mxcl@me.com>
2023-02-25 11:35:56 -05:00

25 lines
516 B
YAML

distributable:
url: https://github.com/akheron/jansson/releases/download/v{{ version.raw }}/jansson-{{ version.raw }}.tar.gz
strip-components: 1
versions:
github: akheron/jansson/tags
strip: /^v/
build:
dependencies:
linux:
gnu.org/gcc: '*'
darwin:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
script: |
./configure --prefix="{{prefix}}"
make --jobs {{ hw.concurrency }} install
test:
dependencies:
tea.xyz/gx/cc: c99
script: |
cc fixture.c -ljansson
./a.out