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

provides:
  - bin/kaspa-miner

versions:
  github: elichai/kaspa-miner
  strip: /v/

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

test:
  # FIXME: needs a server :/
  kaspa-miner -V | grep {{version}}