pantry/projects/sourceware.org/libffi/package.yml
2023-10-01 20:41:57 -04:00

19 lines
431 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:
script: |
./configure --prefix={{prefix}} --disable-debug
make --jobs {{ hw.concurrency }} install
test:
dependencies:
freedesktop.org/pkg-config: ^0.29
script: |
cc -o closure test.c $(pkg-config --libs libffi)
./closure