This commit is contained in:
Max Howell 2023-04-11 08:57:00 -04:00 committed by GitHub
parent c2eb600926
commit da91d92898
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,29 @@
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;
}