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

provides:
  - bin/rg

versions:
  github: BurntSushi/ripgrep/tags

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

test:
  script: |
    rg hello $FIXTURE
  fixture: |
    hello, world
