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

Morten Linderud foxboron at archlinux.org
Sun Jul 5 14:26:27 UTC 2020


    Date: Sunday, July 5, 2020 @ 14:26:27
  Author: foxboron
Revision: 657835

upgpkg: popeye 0.7.1-2

Updated to the go package guidelines

Modified:
  popeye/trunk/PKGBUILD

----------+
 PKGBUILD |   13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-05 14:23:19 UTC (rev 657834)
+++ PKGBUILD	2020-07-05 14:26:27 UTC (rev 657835)
@@ -2,12 +2,12 @@
 
 pkgname=popeye
 pkgver=0.7.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Kubernetes cluster resource sanitizer"
 arch=('x86_64')
 url="https://github.com/derailed/popeye"
 license=('Apache')
-makedepends=('go-pie' 'git')
+makedepends=('go' 'git')
 depends=('glibc')
 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/derailed/popeye/archive/v${pkgver}.tar.gz")
 md5sums=('f23609d2f87c3b88d9c01b6b92541368')
@@ -14,9 +14,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 .
   chmod +x ./popeye
 }
 



More information about the arch-commits mailing list