mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
Add ghq
This commit is contained in:
parent
2221652623
commit
596d0c7248
1 changed files with 30 additions and 0 deletions
30
projects/github.com/x-motemen/ghq/package.yml
Normal file
30
projects/github.com/x-motemen/ghq/package.yml
Normal file
|
@ -0,0 +1,30 @@
|
|||
distributable:
|
||||
url: git+https://github.com/x-motemen/ghq
|
||||
ref: v{{version}}
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: x-motemen/ghq
|
||||
strip: /^v/
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
go.dev: ^1.21
|
||||
script: |
|
||||
go build -ldflags="$LDFLAGS" -o $BUILDLOC .
|
||||
env:
|
||||
CGO_ENABLED: 0
|
||||
LDFLAGS:
|
||||
- -s
|
||||
- -w
|
||||
- -X main.revision=$(git rev-parse --short HEAD)
|
||||
BUILDLOC: '{{prefix}}/bin/ghq'
|
||||
|
||||
provides:
|
||||
- bin/ghq
|
||||
|
||||
test:
|
||||
dependencies:
|
||||
gnu.org/grep: '*'
|
||||
script: |
|
||||
test "$(ghq --version | grep -E '^ghq version {{version}}')"
|
Loading…
Reference in a new issue