mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 08:55:07 +03:00
34 lines
692 B
YAML
34 lines
692 B
YAML
|
distributable:
|
||
|
url: https://github.com/junegunn/fzf/archive/refs/tags/{{version}}.tar.gz
|
||
|
strip-components: 1
|
||
|
|
||
|
versions:
|
||
|
github: junegunn/fzf
|
||
|
|
||
|
provides:
|
||
|
- bin/fzf
|
||
|
|
||
|
build:
|
||
|
script: |
|
||
|
go build -v -ldflags="$LDFLAGS"
|
||
|
mkdir -p "{{ prefix }}"/bin
|
||
|
mv fzf "{{ prefix }}"/bin
|
||
|
dependencies:
|
||
|
go.dev: ^1.18
|
||
|
env:
|
||
|
LDFLAGS:
|
||
|
- -s
|
||
|
- -w
|
||
|
- -X main.version={{ version }}
|
||
|
- -X main.revision=tea
|
||
|
linux:
|
||
|
# or segmentation fault
|
||
|
# fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575
|
||
|
LDFLAGS:
|
||
|
- -buildmode=pie
|
||
|
|
||
|
test:
|
||
|
script: |
|
||
|
out=$(cat data.txt | fzf -f wld)
|
||
|
test "$out" = "world"
|