mirror of
https://github.com/ivabus/pantry
synced 2024-11-14 12:35:10 +03:00
32 lines
607 B
YAML
32 lines
607 B
YAML
distributable:
|
|
url: https://github.com/elves/elvish/archive/refs/tags/v{{ version }}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: elves/elvish
|
|
strip: /^v/
|
|
|
|
build:
|
|
dependencies:
|
|
go.dev: ^1.19
|
|
script: |
|
|
mkdir -p "{{ prefix }}"/bin
|
|
go build -ldflags="$LDFLAGS" ./cmd/elvish
|
|
mv elvish "{{ prefix }}"/bin
|
|
env:
|
|
LDFLAGS:
|
|
- -s
|
|
- -w
|
|
- -X
|
|
- src.elv.sh/pkg/buildinfo.VersionSuffix=
|
|
linux:
|
|
LDFLAGS:
|
|
- -buildmode=pie
|
|
|
|
|
|
provides:
|
|
- bin/elvish
|
|
|
|
test: |
|
|
test "$(elvish --version)" = "{{version}}"
|
|
test "$(elvish -c 'echo hello')" = "hello"
|