diff --git a/projects/github.com/JuliaStrings/utf8proc/package.yml b/projects/github.com/JuliaStrings/utf8proc/package.yml new file mode 100644 index 00000000..70d2daf5 --- /dev/null +++ b/projects/github.com/JuliaStrings/utf8proc/package.yml @@ -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 + #include + + int main() { + const char *version = utf8proc_version(); + return strnlen(version, sizeof("1.3.1-dev")) > 0 ? 0 : -1; + } \ No newline at end of file