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

versions:
  github: derailed/k9s

provides:
  - bin/k9s

build:
  dependencies:
    go.dev: ^1.18
    gnu.org/make: '*'
    git-scm.org: '*' # needed to show git commit hash in version

  script: |
    make build
    mkdir -p "{{ prefix }}"/bin
    mv ./execs/k9s "{{ prefix }}"/bin

test:
  k9s version
