pantry/projects/github.com/JuliaStrings/utf8proc/package.yml
2023-04-11 08:57:00 -04:00

29 lines
596 B
YAML

distributable:
url: https://github.com/JuliaStrings/utf8proc/archive/v{{version}}.tar.gz
strip-components: 1
versions:
github: JuliaStrings/utf8proc
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
script:
make install prefix={{prefix}}
test:
dependencies:
tea.xyz/gx/cc: c99
script: |
mv $FIXTURE fixture.c
cc fixture.c -lutf8proc
./a.out
fixture: |
#include <string.h>
#include <utf8proc.h>
int main() {
const char *version = utf8proc_version();
return strnlen(version, sizeof("1.3.1-dev")) > 0 ? 0 : -1;
}