mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+charm.sh/skate (#5280)
* new file: projects/charm.sh/skate/package.yml * \n * +curl.se/ca-certs * use tar archive in distributable
This commit is contained in:
parent
76b75bcb97
commit
9556685805
1 changed files with 37 additions and 0 deletions
37
projects/charm.sh/skate/package.yml
Normal file
37
projects/charm.sh/skate/package.yml
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/charmbracelet/skate/archive/v{{version}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: charmbracelet/skate
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
curl.se/ca-certs: '*'
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
go.dev: ^1.21
|
||||||
|
script:
|
||||||
|
go build $ARGS -ldflags="$LDFLAGS" .
|
||||||
|
env:
|
||||||
|
ARGS:
|
||||||
|
- -trimpath
|
||||||
|
- -o={{prefix}}/bin/skate
|
||||||
|
linux:
|
||||||
|
ARGS:
|
||||||
|
- -buildmode=pie
|
||||||
|
LDFLAGS:
|
||||||
|
- -s
|
||||||
|
- -w
|
||||||
|
- -X main.Version={{version}}
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/skate
|
||||||
|
|
||||||
|
test:
|
||||||
|
- skate set foo bar
|
||||||
|
- skate get foo | grep bar
|
||||||
|
- skate list | grep foo
|
||||||
|
- skate set 猫咪 喵
|
||||||
|
- skate get 猫咪 | grep 喵
|
||||||
|
- skate --version | grep {{version}}
|
Loading…
Reference in a new issue