2022-08-19 23:08:56 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/gohugoio/hugo/archive/v{{ version }}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
2022-11-03 21:11:06 +03:00
|
|
|
provides:
|
|
|
|
- bin/hugo
|
|
|
|
|
2022-08-19 23:08:56 +03:00
|
|
|
versions:
|
|
|
|
github: gohugoio/hugo
|
|
|
|
|
|
|
|
# TODO completion is available by running the command
|
|
|
|
|
|
|
|
build:
|
|
|
|
script: |
|
2022-10-21 15:46:44 +03:00
|
|
|
go build -ldflags="$LDFLAGS"
|
2022-08-19 23:08:56 +03:00
|
|
|
mkdir -p "{{ prefix }}"/bin
|
|
|
|
mv hugo "{{ prefix }}"/bin
|
|
|
|
dependencies:
|
|
|
|
go.dev: ^1.18 # probs higher than is true
|
2022-10-21 15:46:44 +03:00
|
|
|
env:
|
|
|
|
LDFLAGS:
|
|
|
|
- -s -w
|
|
|
|
linux:
|
|
|
|
# or segmentation fault
|
|
|
|
# fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575
|
|
|
|
LDFLAGS:
|
|
|
|
- -buildmode=pie
|
2022-08-19 23:08:56 +03:00
|
|
|
test:
|
|
|
|
hugo version
|