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

Levente Polyak anthraxx at archlinux.org
Mon Apr 13 12:50:40 UTC 2020


    Date: Monday, April 13, 2020 @ 12:50:39
  Author: anthraxx
Revision: 613635

upgpkg: alicloud-vault 1.2.0-2: respect distro flags

Modified:
  alicloud-vault/trunk/PKGBUILD

----------+
 PKGBUILD |   16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-13 12:06:59 UTC (rev 613634)
+++ PKGBUILD	2020-04-13 12:50:39 UTC (rev 613635)
@@ -3,13 +3,13 @@
 
 pkgname=alicloud-vault
 pkgver=1.2.0
-pkgrel=1
+pkgrel=2
 pkgdesc='Vault for securely storing and accessing Alibaba Cloud credentials in development environments'
 url='https://github.com/arafato/alicloud-vault'
 arch=('x86_64')
 license=('MIT')
 depends=('glibc')
-makedepends=('go-pie')
+makedepends=('go')
 source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
 sha512sums=('865e7cb1e61d97bef8b0239e4528f4faceed005904805fa015c1a8952764dd4f43798a700f9cda3972a3a3b7fc4334527ddb80089f20a0312ac040ae1c08f440')
 b2sums=('09e0c7febd26ddc8c453c489a017ebb77541f380dfd7f3742718e03710b08ea5ca9f0c6be710ea8023162f9d4ef2473f3308a1de80af9a36feaf0be8c0fed776')
@@ -16,11 +16,13 @@
 
 build() {
   cd ${pkgname}-${pkgver}
-  go build \
-    -trimpath \
-    -ldflags="-extldflags ${LDFLAGS} -X main.Version=${pkgver} -s -w" \
-    -o "./${pkgname}" .
-  go clean --modcache
+  export GO11MODULE=on
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export GOFLAGS="-buildmode=pie -trimpath"
+  go build -ldflags="-X main.Version=${pkgver}"
 }
 
 check() {


More information about the arch-commits mailing list