pantry/projects/libuv.org/package.yml
Max Howell 81e7a5e16f
pkgx
2023-10-01 14:44:42 -04:00

32 lines
611 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:
dependencies:
script: |
./configure --prefix="{{prefix}}"
make --jobs {{hw.concurrency}}
make install
test:
dependencies:
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;
}