diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 10 insertions, 3 deletions
@@ -1,7 +1,7 @@ pkgbase = syncthing-discosrv pkgdesc = Discover server for the syncthing P2P synchronization utility pkgver = 1.17.0 - pkgrel = 1 + pkgrel = 2 epoch = 1 url = http://syncthing.net install = syncthing-discosrv.install @@ -8,7 +8,7 @@ _pkgname=syncthing pkgname=$_pkgname-discosrv epoch=1 pkgver=1.17.0 -pkgrel=1 +pkgrel=2 pkgdesc='Discover server for the syncthing P2P synchronization utility' url='http://syncthing.net' license=('MIT') @@ -40,7 +40,14 @@ prepare() { build() { export GOPATH="$srcdir" cd src/github.com/$_pkgname/$_pkgname/cmd/stdiscosrv - go build -modcacherw -x -i -v -ldflags -w + + go build \ + -trimpath \ + -buildmode=pie \ + -mod=readonly \ + -modcacherw \ + -ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \ + . } package() { |