distributable:
  url: https://github.com/JuliaStrings/utf8proc/archive/v{{version}}.tar.gz
  strip-components: 1

versions:
  github: JuliaStrings/utf8proc

build: make install prefix={{prefix}}

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;
    }
