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

Morten Linderud foxboron at archlinux.org
Tue Jun 9 21:41:33 UTC 2020


    Date: Tuesday, June 9, 2020 @ 21:41:33
  Author: foxboron
Revision: 641029

upgpkg: restic 0.9.6-3

Go package guidelines

Modified:
  restic/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-06-09 21:40:45 UTC (rev 641028)
+++ PKGBUILD	2020-06-09 21:41:33 UTC (rev 641029)
@@ -2,13 +2,13 @@
 
 pkgname=restic
 pkgver=0.9.6
-pkgrel=2
+pkgrel=3
 pkgdesc="Fast, secure, efficient backup program"
 arch=('x86_64')
 url="https://restic.net"
 license=('BSD')
 depends=('glibc')
-makedepends=('go-pie' 'git')
+makedepends=('go' 'git')
 checkdepends=('fuse2')
 optdepends=('fuse2: mount archive')
 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/restic/restic/archive/v${pkgver}.tar.gz")
@@ -16,7 +16,12 @@
 
 build(){
   cd "${pkgname}-${pkgver}"
-  go build -mod=vendor -trimpath -ldflags "-X 'main.version=${pkgver}' -extldflags ${LDFLAGS}" ./cmd/...
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export GOFLAGS="-buildmode=pie -trimpath -mod=vendor -modcacherw"
+  go build -ldflags "-X 'main.version=${pkgver}'" ./cmd/...
 }
 
 check(){



More information about the arch-commits mailing list