pantry/projects/github.com/zyedidia/eget/package.yml
Andrii Riabchenko b0e809f22d +
2024-01-14 21:55:55 -05:00

45 lines
No EOL
721 B
YAML

distributable:
url: git+https://github.com/zyedidia/eget
ref: ${{version.tag}}
display-name: Eget
versions:
github: zyedidia/eget
dependencies:
curl.se/ca-certs: '*'
build:
dependencies:
go.dev: '*'
pandoc.org: '*'
script:
- go build -ldflags="$LDFLAGS" $ARGS
env:
ARGS:
- -v
- -trimpath
- -o
- ${{prefix}}/bin/eget
LDFLAGS:
- -s
- -w
- -X main.Version={{version}}
linux:
LDFLAGS:
- -buildmode=pie
provides:
- bin/eget
test:
script:
- eget --version | grep {{version}}
- eget zyedidia/eget $ARGS
- ./eget --version | grep 1.1.0
env:
ARGS:
- --tag=v1.1.0
- --to=$PWD
- --file=eget