void-packages/srcpkgs/hugo/template
2024-06-04 23:42:20 +02:00

35 lines
914 B
Bash

# Template file for 'hugo'
pkgname=hugo
version=0.126.3
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"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="Apache-2.0"
homepage="https://gohugo.io"
distfiles="https://github.com/gohugoio/hugo/archive/v${version}.tar.gz"
checksum=2a1d65b09884e3c57a8705db99487404856c947dd847cf7bb845e0e1825b33ec
post_install() {
vdoc README.md
# https://build.voidlinux.org/builders/aarch64-musl_builder/builds/49650/steps/shell_3/logs/stdio
if [ "$XBPS_TARGET_MACHINE" = "aarch64-musl" ]; then
return
fi
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
}