# Contributor: Thomas Boerger # Contributor: Michał Polański # Maintainer: Thomas Boerger pkgname=hugo pkgver=0.116.1 pkgrel=1 pkgdesc="Fast and flexible static site generator written in Go" url="https://gohugo.io/" license="Apache-2.0" arch="all !ppc64le" # fails tests makedepends="go" checkdepends="npm py3-docutils tzdata" subpackages=" $pkgname-doc $pkgname-bash-completion $pkgname-fish-completion $pkgname-zsh-completion " source="https://github.com/gohugoio/hugo/archive/v$pkgver/hugo-$pkgver.tar.gz skip-para-test.patch skip-image-test.patch " export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" build() { go build -v -o bin/$pkgname --tags extended ./bin/hugo gen man ./bin/hugo completion bash > hugo.bash ./bin/hugo completion fish > hugo.fish ./bin/hugo completion zsh > hugo.zsh } check() { go test ./... } package() { install -Dm755 bin/$pkgname "$pkgdir"/usr/bin/$pkgname install -Dm644 man/*.1 -t "$pkgdir"/usr/share/man/man1 install -Dm644 hugo.bash \ "$pkgdir"/usr/share/bash-completion/completions/hugo install -Dm644 hugo.fish \ "$pkgdir"/usr/share/fish/vendor_completions.d/hugo.fish install -Dm644 hugo.zsh \ "$pkgdir"/usr/share/zsh/site-functions/_hugo } sha512sums=" 56b6fc3a70dbd80b3a547e875b8c551155186fceb9f76ee35d4fafa2d2230f475d4d745f2f8292f45961fc7073a012c401555d593031eefb131d2568cb3624d6 hugo-0.116.1.tar.gz 6ba192d8cb67f115f7ce596c297a55fc64713a4cdb0077cfbb7e45051c7560f5b668da88f513d4f34d8e0eeb4a9d991c5312d62e454c85e95960d8a33f0f8f69 skip-para-test.patch 0feb0495f03315c9224b301ea955061fcbbf9ae8f871640fbb4b5c0792785a714f3a030f702a1f1f6a8048d60f07a133df4ced2a989df0b9c851b8503b59d26d skip-image-test.patch "