distributable:
  url: https://github.com/hunspell/hunspell/releases/download/v{{version}}/hunspell-{{version}}.tar.gz
  strip-components: 1

display-name: hunspell

versions:
  github: hunspell/hunspell

dependencies:
  gnu.org/readline: '*'
  invisible-island.net/ncurses: '*'
  gnu.org/gettext: '*'

build:
  script: |
    ./configure $ARGS
    make --jobs {{ hw.concurrency }}
    make --jobs {{ hw.concurrency }} install
  env:
    ARGS:
      - --prefix="{{prefix}}"
      - --with-readline
      - --with-ui
      - --disable-silent-rules

provides:
  - bin/analyze
  - bin/chmorph
  - bin/hunspell
  - bin/hunzip
  - bin/hzip
  - bin/munch
  - bin/unmunch

test: hunspell --version | grep {{version}}
