pantry/projects/sourceware.org/libffi/package.yml
Max Howell ac5c6ceff3 add more pkg tests (#102)
* more-tests pt.1

* useCellar() is overkill here.

Co-authored-by: Jacob Heider <jacob@tea.xyz>
2022-08-31 15:45:04 -04:00

22 lines
458 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 test.c -lffi
./closure