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

Morten Linderud foxboron at archlinux.org
Sun Jul 5 14:23:05 UTC 2020


    Date: Sunday, July 5, 2020 @ 14:23:05
  Author: foxboron
Revision: 657833

upgpkg: syncthing 1.6.1-2

Updated with new go package guidelines

Modified:
  syncthing/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-05 14:19:44 UTC (rev 657832)
+++ PKGBUILD	2020-07-05 14:23:05 UTC (rev 657833)
@@ -6,12 +6,12 @@
 
 pkgname=('syncthing' 'syncthing-relaysrv')
 pkgver=1.6.1
-pkgrel=1
+pkgrel=2
 arch=('x86_64')
 url="https://syncthing.net/"
 license=('MPL')
 depends=('glibc')
-makedepends=('git' 'go-pie' 'inetutils')
+makedepends=('git' 'go' 'inetutils')
 # options=('!strip')
 source=(https://github.com/syncthing/syncthing/releases/download/v$pkgver/syncthing-source-v${pkgver}.tar.gz{,.asc}
         syncthing-relaysrv.sysusers
@@ -38,6 +38,11 @@
 build() {
   export GOPATH="${srcdir}" GOROOT_FINAL="/usr/bin"
   cd "${srcdir}/src/github.com/syncthing/${pkgbase}"
+  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 run build.go -no-upgrade -version v${pkgver} build
   go run build.go -no-upgrade -version v${pkgver} build strelaysrv
 }



More information about the arch-commits mailing list