[arch-commits] Commit in syncthing/trunk (PKGBUILD)
Caleb Maclennan
alerque at gemini.archlinux.org
Wed Jan 12 12:35:36 UTC 2022
Date: Wednesday, January 12, 2022 @ 12:35:35
Author: alerque
Revision: 1101514
upgpkg: syncthing 1.18.6-2
Modified:
syncthing/trunk/PKGBUILD
----------+
PKGBUILD | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-01-12 09:53:07 UTC (rev 1101513)
+++ PKGBUILD 2022-01-12 12:35:35 UTC (rev 1101514)
@@ -7,13 +7,12 @@
pkgname=('syncthing' 'syncthing-relaysrv')
pkgver=1.18.6
-pkgrel=1
+pkgrel=2
arch=('x86_64')
url="https://syncthing.net/"
license=('MPL')
depends=('glibc')
makedepends=('git' 'go')
-options=('!lto') # '!strip'
source=(https://github.com/syncthing/syncthing/releases/download/v$pkgver/syncthing-source-v${pkgver}.tar.gz{,.asc}
syncthing-relaysrv.sysusers
syncthing-relaysrv.tmpfiles
@@ -36,15 +35,12 @@
}
build() {
+ export CGO_ENABLED=0
export BUILD_HOST=archlinux
export BUILD_USER=${pkgbase}
export EXTRA_LDFLAGS="-linkmode external -extldflags \"${LDFLAGS}\""
export GOPATH="${srcdir}" GOROOT_FINAL="/usr/bin"
cd "${srcdir}/src/github.com/syncthing/${pkgbase}"
- export CGO_CPPFLAGS="${CPPFLAGS}"
- # CFLAGS+=" -ffat-lto-objects"
- export CGO_CFLAGS="${CFLAGS}"
- export CGO_CXXFLAGS="${CXXFLAGS}"
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