[arch-commits] Commit in sops/trunk (PKGBUILD)
Daurnimator
daurnimator at gemini.archlinux.org
Mon Mar 7 11:53:09 UTC 2022
Date: Monday, March 7, 2022 @ 11:53:07
Author: daurnimator
Revision: 1144362
download go modules in prepare() step
Modified:
sops/trunk/PKGBUILD
----------+
PKGBUILD | 8 ++++++++
1 file changed, 8 insertions(+)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-03-07 10:19:14 UTC (rev 1144361)
+++ PKGBUILD 2022-03-07 11:53:07 UTC (rev 1144362)
@@ -10,6 +10,7 @@
license=('MPL2')
depends=('glibc')
makedepends=('go')
+options=('!lto')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
'bash_autocomplete'
'zsh_autocomplete')
@@ -17,6 +18,12 @@
'761c67ffd48431e60ea5dc48e5656b4480eca7534d4b715eb65bd75680f5e975'
'd98d34aeaa7b0f98220bcb21fc9f2bb58efaed45478a7229eb58e5795b57b5a7')
+prepare() {
+ cd "${pkgname}-${pkgver}"
+
+ go mod download
+}
+
build() {
cd "${pkgname}-${pkgver}"
@@ -24,6 +31,7 @@
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
+ export GOPROXY=off
go build \
-trimpath \
-buildmode=pie \
More information about the arch-commits
mailing list