2023-03-18 01:16:35 +03:00
|
|
|
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
|
2024-02-11 21:20:36 +03:00
|
|
|
linux/aarch64:
|
2024-02-11 21:51:55 +03:00
|
|
|
gnu.org/gcc: '*' # wants `gcc` and `ld.gold`
|
2024-02-11 21:20:36 +03:00
|
|
|
script: go build -ldflags="$LDFLAGS" -o "{{ prefix }}/bin/elvish" ./cmd/elvish
|
2023-03-18 01:16:35 +03:00
|
|
|
env:
|
|
|
|
LDFLAGS:
|
|
|
|
- -s
|
|
|
|
- -w
|
|
|
|
- -X
|
|
|
|
- src.elv.sh/pkg/buildinfo.VersionSuffix=
|
|
|
|
linux:
|
|
|
|
LDFLAGS:
|
|
|
|
- -buildmode=pie
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/elvish
|
|
|
|
|
2024-02-11 21:20:36 +03:00
|
|
|
test:
|
|
|
|
- test "$(elvish --version)" = "{{version}}"
|
|
|
|
- test "$(elvish -c 'echo hello')" = "hello"
|