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

display-name: agg

versions:
  github: asciinema/agg/tags  # reads github tags from github

dependencies:
  rust-lang.org: ^1.56

build:
  dependencies:
    rust-lang.org/cargo: '*'
  script: 
    cargo install --path . --root {{prefix}}

provides:
  - bin/agg

test:
  script:
    test "$(agg --version)" = "agg {{version}}"
