From 8806d6a70f07324cc0daa58ad015d6a2f4e1b355 Mon Sep 17 00:00:00 2001 From: dataCobra Date: Tue, 30 Aug 2022 09:24:28 +0200 Subject: [PATCH] hugo: update to 0.102.1. --- srcpkgs/hugo/template | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/srcpkgs/hugo/template b/srcpkgs/hugo/template index 4ab952760b8c..f06304f94e0e 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.1 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=88c3f4c4b1211b0740c0a15af99cd9982a8e5b3f4de2ec3f867d47082571ee91 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 }