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

versions:
  github: xiph/rav1e/releases

dependencies:
  nasm.us: ^2.14.02

provides:
  - bin/rav1e

build:
  dependencies:
    # Build errors with 1.69.0
    rust-lang.org: ">=1.60<1.69"
    rust-lang.org/cargo: "*"
  script: |
    cargo install --locked --path . --root {{prefix}}

test:
  rav1e --version
