31 lines
747 B
Bash
31 lines
747 B
Bash
# Template file for 'hugo'
|
|
pkgname=hugo
|
|
version=0.124.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"
|
|
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=0beb0436f6bd90abb425523229a37f1d31e2e9c7ba9fac4556a72aab3b11bfef
|
|
|
|
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
|
|
}
|