+github.com/mikefarah/yq (#61)

* +github.com/mikefarah/yq
* Add pandoc dependency and man page

Co-authored-by: James Reynolds <magnsuviri@me.com>
This commit is contained in:
James Reynolds 2022-12-11 06:47:45 -07:00 committed by GitHub
parent 3a4d686d42
commit 958f1b83f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,28 @@
distributable:
url: https://github.com/mikefarah/yq/archive/refs/tags/v{{ version }}.tar.gz
strip-components: 1
versions:
github: mikefarah/yq/releases/tags
build:
script: |
go build -v -ldflags="$LDFLAGS"
./scripts/generate-man-page-md.sh
./scripts/generate-man-page.sh
mkdir -p "{{ prefix }}"/bin
mv yq "{{ prefix }}"/bin
mkdir -p "{{ prefix }}"/share/man/man1
mv yq.1 "{{ prefix }}"/share/man/man1
dependencies:
go.dev: ^1.18
pandoc.org: '*'
env:
LDFLAGS:
- -s -w
linux:
LDFLAGS:
- -buildmode=pie
test:
yq --version