pantry/projects/github.com/JuliaStrings/utf8proc/package.yml

23 lines
480 B
YAML
Raw Normal View History

2023-04-11 15:57:00 +03:00
distributable:
url: https://github.com/JuliaStrings/utf8proc/archive/v{{version}}.tar.gz
strip-components: 1
versions:
github: JuliaStrings/utf8proc
build: make install prefix={{prefix}}
2023-04-11 15:57:00 +03:00
test:
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;
}