diff --git a/srcpkgs/hugo/template b/srcpkgs/hugo/template index 4ab952760b8..d24c31d6fb1 100644 --- a/srcpkgs/hugo/template +++ b/srcpkgs/hugo/template @@ -1,8 +1,9 @@ # Template file for 'hugo' pkgname=hugo -version=0.101.0 +version=0.102.2 revision=1 build_style=go +build_helper=qemu go_import_path="github.com/gohugoio/hugo" go_build_tags="extended" short_desc="Fast & Modern Static Website Engine" @@ -10,8 +11,20 @@ maintainer="Andrea Brancaleoni " license="Apache-2.0" homepage="https://gohugo.io" distfiles="https://github.com/gohugoio/hugo/archive/v${version}.tar.gz" -checksum=ce5e2c37d9980428cfbfb22cabedc29aebe8f1142ce261777d0435f9f2d6d1cb +checksum=55c2f1bbddaa1a7be6d95ab983e4a671e6d5f7ecbc1bde8a425295845f0dd764 post_install() { vdoc README.md + + hugo=$(find $GOPATH/bin -name hugo) + + vtargetrun $hugo gen man + for page in $(ls man/); do + vman man/$page + done + + for shell in bash fish zsh; do + vtargetrun $hugo completion $shell > ${pkgname}.$shell + vcompletion ${pkgname}.$shell $shell + done }