mirror of
https://github.com/ivabus/pantry
synced 2024-11-14 04:25:08 +03:00
30 lines
636 B
YAML
30 lines
636 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
|
|
linux/aarch64:
|
|
gnu.org/gcc: '*' # wants `gcc` and `ld.gold`
|
|
script: go build -ldflags="$LDFLAGS" -o "{{ prefix }}/bin/elvish" ./cmd/elvish
|
|
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"
|