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

Morten Linderud foxboron at archlinux.org
Sun Jul 5 14:39:36 UTC 2020


    Date: Sunday, July 5, 2020 @ 14:39:36
  Author: foxboron
Revision: 657845

upgpkg: mkcert 1.4.1-4

Updated to current go package guidelines

Modified:
  mkcert/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-05 14:38:05 UTC (rev 657844)
+++ PKGBUILD	2020-07-05 14:39:36 UTC (rev 657845)
@@ -4,12 +4,12 @@
 pkgname=mkcert
 _package="github.com/FiloSottile/${pkgname}"
 pkgver=1.4.1
-pkgrel=3
+pkgrel=4
 pkgdesc="Simple tool for making locally-trusted development certificates"
 arch=('x86_64')
 url="https://github.com/FiloSottile/mkcert"
 license=('BSD')
-makedepends=('go-pie' 'git')
+makedepends=('go' 'git')
 depends=('glibc')
 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/FiloSottile/${pkgname}/archive/v${pkgver}.tar.gz")
 sha512sums=('23b008a06ba594f7f5a82b12d00dc129d237421f776bcbf4be04e61a99fa92d49977a616846de45ef98292e31d28bbd543bec70566d14ecfceccee8bbe49038f')
@@ -16,7 +16,12 @@
 
 build() {
   cd "${pkgname}-${pkgver}"
-  go build -trimpath -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
 }
 
 check() {



More information about the arch-commits mailing list