isplay-name: chainguard-dev/apko
distributable:
  url: git+https://github.com/chainguard-dev/apko
  ref: v{{version}}

versions:
  github: chainguard-dev/apko
  strip:
  - /^v/

build:
  dependencies:
    git-scm.org: '*'
    go.dev: '^1.21'
    cmake.org: '^3'
  env:
     DESTDIR: "{{ prefix }}/"
     BINDIR: "bin"
  script:
  - make apko
  - make install

provides:
  - bin/apko

test: test "$(apko version|grep GitVersion|cut -d'v' -f2)" = {{version}}
