pantry/projects/github.com/ankitpokhrel/jira-cli/package.yml
Jacob Heider dc00356d6e +jira-cli
closes #6007
2024-04-26 19:50:25 -04:00

29 lines
615 B
YAML

distributable:
url: https://github.com/ankitpokhrel/jira-cli/archive/refs/tags/{{version.tag}}.tar.gz
strip-components: 1
versions:
github: ankitpokhrel/jira-cli
provides:
- bin/jira
build:
dependencies:
go.dev: ^1.21
script:
- run: unset LDFLAGS
if: darwin
- make deps install
env:
GOBIN: ${{prefix}}/bin
VERSION: ${{version}}
GIT_COMMIT: release
SOURCE_DATE_EPOCH: $(date +%s)
linux:
LDFLAGS: -buildmode=pie
test:
- jira version | grep 'Version="{{version}}"'
- (jira serverinfo 2>&1 || true) | grep 'The tool needs a Jira API token to function.'