mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
236f8dede3
closes #6183
30 lines
634 B
YAML
30 lines
634 B
YAML
distributable:
|
|
url: https://github.com/a-h/templ/archive/refs/tags/{{version.tag}}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: a-h/templ
|
|
|
|
build:
|
|
dependencies:
|
|
go.dev: ^1.20
|
|
env:
|
|
CGO_ENABLED: 0
|
|
LDFLAGS:
|
|
- -extldflags=-static
|
|
- -w
|
|
- -s
|
|
script:
|
|
- echo -n {{ version }} >.version
|
|
- go build -v -ldflags="$LDFLAGS" -o "{{ prefix }}"/bin/templ ./cmd/templ
|
|
|
|
provides:
|
|
- bin/templ
|
|
|
|
test:
|
|
script:
|
|
# some versions have a v prefix, some don't
|
|
- test "$(templ --version)" = {{version}} || test "$(templ --version)" = "v{{version}}"
|
|
- templ generate
|
|
- test -f hello_templ.go
|