diff options
Diffstat (limited to 'community/hugo/APKBUILD')
-rw-r--r-- | community/hugo/APKBUILD | 40 |
1 files changed, 24 insertions, 16 deletions
diff --git a/community/hugo/APKBUILD b/community/hugo/APKBUILD index f610b38a15b..01755468300 100644 --- a/community/hugo/APKBUILD +++ b/community/hugo/APKBUILD @@ -2,30 +2,35 @@ # Contributor: Michał Polański <michal@polanski.me> # Maintainer: Thomas Boerger <thomas@webhippie.de> pkgname=hugo -pkgver=0.83.1 -pkgrel=1 +pkgver=0.125.1 +pkgrel=0 pkgdesc="Fast and flexible static site generator written in Go" url="https://gohugo.io/" -arch="all" license="Apache-2.0" +arch="all !ppc64le !riscv64" # fails tests makedepends="go" -subpackages="$pkgname-doc $pkgname-bash-completion" +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-git-tests.patch + Fix-TestColorLuminance-on-s390x.patch skip-para-test.patch - skip-js-tests.patch - increase-timeout-pagebundler-test.patch " -# npm is not available on mips64 -if [ "$CARCH" != "mips64" ]; then - checkdepends="npm" -fi +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 gen autocomplete --completionfile="$builddir"/hugo.bash + ./bin/hugo completion bash > hugo.bash + ./bin/hugo completion fish > hugo.fish + ./bin/hugo completion zsh > hugo.zsh } check() { @@ -35,14 +40,17 @@ check() { 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=" -04d15866c450fd375c95e5b636d43d1c0b56eb4ff9941501516c17a4b821428729482c0f57f28aca23ca434bb34b70f1c1425ff59ac9304e928fb8b161a90993 hugo-0.83.1.tar.gz -f07d458b5df72d0b10e0fd9ec6120502b62af1ee347f0ec83eda99147c525327c0098150db80450da48c5bc03d825279e35f0940dae5d909203757abb6bd1a20 skip-git-tests.patch +9aaa4d1bfb1fcd9238a3774b749494af035974fdee52f8959ece08cd4e7ae1e37c351af593ab0b6d2a7407823656373e15a08e8e0f196c32ec69fe8d32e7978d hugo-0.125.1.tar.gz +dbb6ae8e691c634d8c3ab42c4bd8cf0e57ea114f9a6d6e1d2d479f78df38c9f1c01f98878f9e72710d64108141d0146a7cf6eb915a34bad2f8040cda9cba9e46 Fix-TestColorLuminance-on-s390x.patch 6ba192d8cb67f115f7ce596c297a55fc64713a4cdb0077cfbb7e45051c7560f5b668da88f513d4f34d8e0eeb4a9d991c5312d62e454c85e95960d8a33f0f8f69 skip-para-test.patch -0eada6d4f318775d24a55bec65349e62148b71322f084874a608596f8248cc948632e5f1823c3e86463090e35777e14784c2bcdb6493ad71be9b98ecc4700f24 skip-js-tests.patch -0eafc165979d869ef401fec050678ba025431ac66b79a9761879024da8326e2dd5e9d14d90e32c3071d83dbac6973c2b4f954217e789944524b660a09131b298 increase-timeout-pagebundler-test.patch " |