mirror of
https://github.com/ivabus/pantry
synced 2025-06-08 08:20:32 +03:00
+elvish
This commit is contained in:
parent
17ea239a3f
commit
d562b33be6
1 changed files with 32 additions and 0 deletions
32
projects/elv.sh/package.yml
Normal file
32
projects/elv.sh/package.yml
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
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"
|
Loading…
Reference in a new issue