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

30 lines
579 B
YAML

distributable:
url: https://dist.libuv.org/dist/v{{version}}/libuv-v{{version}}-dist.tar.gz
sig: ${{url}}.sign
strip-components: 1
versions:
github: libuv/libuv/tags
build:
script: |
./configure --prefix="{{prefix}}"
make --jobs {{hw.concurrency}}
make install
test:
script: |
mv $FIXTURE $FIXTURE.c
cc $FIXTURE.c -luv
./a.out
fixture: |
#include <uv.h>
#include <stdlib.h>
int main() {
uv_loop_t* loop = malloc(sizeof *loop);
uv_loop_init(loop);
uv_loop_close(loop);
free(loop);
return 0;
}