distributable:
  url: https://github.com/tom-on-the-internet/cemetery-escape/archive/refs/tags/{{version}}.tar.gz
  strip-components: 1

versions:
  github: tom-on-the-internet/cemetery-escape

build:
  dependencies:
    go.dev: ^1.21
  script:
    - go build -ldflags="$LDFLAGS" -o "{{prefix}}"/bin/cemetery-escape
  env:
    LDFLAGS:
      - -s
      - -w
    linux:
      LDFLAGS:
        - -buildmode=pie

provides:
  - bin/cemetery-escape

test: cemetery-escape --help | grep 'CEMETERY ESCAPE'
