mirror of
https://github.com/ivabus/pantry
synced 2024-11-29 11:45:07 +03:00
31 lines
562 B
YAML
31 lines
562 B
YAML
|
distributable:
|
||
|
url: https://github.com/a-h/templ/archive/refs/tags/v{{version}}.tar.gz
|
||
|
strip-components: 1
|
||
|
|
||
|
versions:
|
||
|
github: a-h/templ
|
||
|
strip: /^v/
|
||
|
|
||
|
build:
|
||
|
dependencies:
|
||
|
go.dev: ^1.20
|
||
|
env:
|
||
|
CGO_ENABLED: 0
|
||
|
LDFLAGS:
|
||
|
- -extldflags=-static
|
||
|
- -w
|
||
|
- -s
|
||
|
script:
|
||
|
- go build -v -ldflags="$LDFLAGS" -o templ ./cmd/templ
|
||
|
- mkdir -p "{{ prefix }}"/bin
|
||
|
- mv templ "{{ prefix }}"/bin
|
||
|
|
||
|
provides:
|
||
|
- bin/templ
|
||
|
|
||
|
test:
|
||
|
script:
|
||
|
- test "$(templ --version)" = {{version}}
|
||
|
- templ generate
|
||
|
- test -f hello_templ.go
|