mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 16:35:07 +03:00
+
This commit is contained in:
parent
94618b6182
commit
b0e809f22d
1 changed files with 45 additions and 0 deletions
45
projects/github.com/zyedidia/eget/package.yml
Normal file
45
projects/github.com/zyedidia/eget/package.yml
Normal file
|
@ -0,0 +1,45 @@
|
|||
distributable:
|
||||
url: git+https://github.com/zyedidia/eget
|
||||
ref: ${{version.tag}}
|
||||
|
||||
display-name: Eget
|
||||
|
||||
versions:
|
||||
github: zyedidia/eget
|
||||
|
||||
dependencies:
|
||||
curl.se/ca-certs: '*'
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
go.dev: '*'
|
||||
pandoc.org: '*'
|
||||
script:
|
||||
- go build -ldflags="$LDFLAGS" $ARGS
|
||||
env:
|
||||
ARGS:
|
||||
- -v
|
||||
- -trimpath
|
||||
- -o
|
||||
- ${{prefix}}/bin/eget
|
||||
LDFLAGS:
|
||||
- -s
|
||||
- -w
|
||||
- -X main.Version={{version}}
|
||||
linux:
|
||||
LDFLAGS:
|
||||
- -buildmode=pie
|
||||
|
||||
provides:
|
||||
- bin/eget
|
||||
|
||||
test:
|
||||
script:
|
||||
- eget --version | grep {{version}}
|
||||
- eget zyedidia/eget $ARGS
|
||||
- ./eget --version | grep 1.1.0
|
||||
env:
|
||||
ARGS:
|
||||
- --tag=v1.1.0
|
||||
- --to=$PWD
|
||||
- --file=eget
|
Loading…
Reference in a new issue