pantry/projects/sourceware.org/libffi/package.yml
2022-08-02 17:47:52 -04:00

21 lines
482 B
YAML

distributable:
url: https://github.com/libffi/libffi/releases/download/v{{version}}/libffi-{{version}}.tar.gz
strip-components: 1
versions:
github: libffi/libffi/tags
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
script: |
./configure --prefix={{prefix}} --disable-debug
make --jobs {{ hw.concurrency }} install
test:
dependencies:
tea.xyz/gx/cc: c99
script: |
cc -o closure {{ pkg.pantry-prefix }}/test.c -lffi
./closure