distributable:
  url: https://github.com/swsnr/mdcat/archive/refs/tags/mdcat-{{ version }}.tar.gz
  strip-components: 1

provides:
  - bin/mdcat

dependencies:
  openssl.org: ^1.1

versions:
  github: swsnr/mdcat/tags
  strip: /mdcat-/

build:
  dependencies:
    rust-lang.org: '>=1.56'
    rust-lang.org/cargo: '*'
    freedesktop.org/pkg-config: '*'
  script:
    cargo install --locked --path . --root {{prefix}}

test:
  mdcat --version
