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

Morten Linderud foxboron at archlinux.org
Sun Jul 5 15:19:02 UTC 2020


    Date: Sunday, July 5, 2020 @ 15:19:01
  Author: foxboron
Revision: 657857

upgpkg: hugo 0.73.0-2

Updated to new go package guidelines

Modified:
  hugo/trunk/PKGBUILD

----------+
 PKGBUILD |   11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-05 14:59:41 UTC (rev 657856)
+++ PKGBUILD	2020-07-05 15:19:01 UTC (rev 657857)
@@ -5,13 +5,13 @@
 
 pkgname=hugo
 pkgver=0.73.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Fast and Flexible Static Site Generator in Go"
 arch=('x86_64')
 url="https://gohugo.io/"
 license=('Apache')
 depends=('glibc')
-makedepends=('go-pie' 'git')
+makedepends=('go' 'git')
 optdepends=('pygmentize: syntax-highlight code snippets')
 source=(${pkgname}-${pkgver}.tar.gz::https://github.com/gohugoio/${pkgname}/archive/v${pkgver}.tar.gz)
 sha512sums=('16c989382437cb18ee837873e5872b047b12fd09c1f432131a0889a6fd5614a2fea9d510c13b5862fc2c0a760aef18f26ee3d398d66b6ae5f15e375ef86ac4c9')
@@ -18,7 +18,12 @@
 
 build() {
   cd "${srcdir}"/${pkgname}-${pkgver}
-  go build -tags extended -ldflags "-extldflags ${LDFLAGS}"
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+  go build -tags extended 
   ./hugo gen man
 }
 



More information about the arch-commits mailing list