[arch-commits] Commit in hugo/trunk (PKGBUILD)

Jaroslav Lichtblau jlichtblau at archlinux.org
Sat Jun 19 15:44:44 UTC 2021


    Date: Saturday, June 19, 2021 @ 15:44:43
  Author: jlichtblau
Revision: 965525

upgpkg: hugo 0.84.0-1 - new upstream release

Modified:
  hugo/trunk/PKGBUILD

----------+
 PKGBUILD |   13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-06-19 15:44:07 UTC (rev 965524)
+++ PKGBUILD	2021-06-19 15:44:43 UTC (rev 965525)
@@ -4,7 +4,7 @@
 # Contributor: Brenton Horne
 
 pkgname=hugo
-pkgver=0.83.1
+pkgver=0.84.0
 pkgrel=1
 pkgdesc="Fast and Flexible Static Site Generator in Go"
 arch=('x86_64')
@@ -15,7 +15,7 @@
 optdepends=('python-pygments: syntax-highlight code snippets'
             'python-docutils: reStructuredText support')
 source=(${pkgname}-${pkgver}.tar.gz::https://github.com/gohugoio/${pkgname}/archive/v${pkgver}.tar.gz)
-sha512sums=('04d15866c450fd375c95e5b636d43d1c0b56eb4ff9941501516c17a4b821428729482c0f57f28aca23ca434bb34b70f1c1425ff59ac9304e928fb8b161a90993')
+sha512sums=('29fb446142c8f57bcdbfd0a4aa5fac09827669b59fe319395fbe2e146d9cd5e6c5913d5d8fc4a5bb5277fcdfce4c04a4cd3775f06e80b5c8c143e2686e7347ae')
 
 build() {
   cd "${srcdir}"/${pkgname}-${pkgver}
@@ -24,8 +24,11 @@
   export CGO_CXXFLAGS="${CXXFLAGS}"
   export CGO_LDFLAGS="${LDFLAGS}"
   export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
-  go build -tags extended 
+  go build -tags extended
+
   ./hugo gen man
+  ./hugo gen autocomplete --type bash --completionfile ${pkgname}.bash-completion
+  ./hugo gen autocomplete --type zsh --completionfile ${pkgname}.zsh
 }
 
 package() {
@@ -32,5 +35,9 @@
   cd "${srcdir}"/${pkgname}-${pkgver}
   install -Dm755 "${pkgname}" "${pkgdir}"/usr/bin/${pkgname}
   install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+
   install -Dm644 "${srcdir}"/${pkgname}-${pkgver}/man/*.1  -t "${pkgdir}"/usr/share/man/man1/
+  
+  install -Dm644 ${pkgname}.bash-completion "${pkgdir}"/usr/share/bash-completion/completions/${pkgname}
+  install -Dm644 ${pkgname}.zsh "${pkgdir}"/usr/share/zsh/site-functions/_${pkgname}
 }



More information about the arch-commits mailing list