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

versions:
  github: neovim/unibilium

build:
  dependencies:
    gnu.org/libtool: '*'
  darwin:
    invisible-island.net/ncurses: '*'
  script: |
    make --jobs {{ hw.concurrency }}
    make --jobs {{ hw.concurrency }} install $ARGS

  env:
    ARGS:
      - PREFIX="{{prefix}}"

test:
  dependencies:
    freedesktop.org/pkg-config: '*'
  script: |
    pkg-config --modversion unibilium | grep {{version}}
    cc test.c -lunibilium -o test
    ./test
