[arch-commits] Commit in nebula/trunk (PKGBUILD)
Morten Linderud
foxboron at archlinux.org
Sun Jul 5 14:37:57 UTC 2020
Date: Sunday, July 5, 2020 @ 14:37:55
Author: foxboron
Revision: 657843
upgpkg: nebula 1.2.0-1
Updated to current go package guidelines
Modified:
nebula/trunk/PKGBUILD
----------+
PKGBUILD | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-07-05 14:35:48 UTC (rev 657842)
+++ PKGBUILD 2020-07-05 14:37:55 UTC (rev 657843)
@@ -1,13 +1,13 @@
# Maintainer: Robin Broda <coderobe @ archlinux.org>
pkgname=nebula
pkgver=1.2.0
-pkgrel=0
+pkgrel=1
pkgdesc='A scalable overlay networking tool with a focus on performance, simplicity and security'
arch=('x86_64')
url='https://github.com/slackhq/nebula'
license=('MIT')
depends=()
-makedepends=('go-pie')
+makedepends=('go')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('1d00594d74e147406f5809380860f538ceed5c19c3f390dd1d8e364f99b303b6')
@@ -14,10 +14,15 @@
build() {
cd "${pkgname}-${pkgver}"
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+
for bin in nebula{,-cert,-service}
do go build \
- -trimpath \
- -ldflags "-extldflags ${LDFLAGS} -X main.Build=${pkgver}" \
+ -ldflags "-X main.Build=${pkgver}" \
-o "${bin}" "./cmd/${bin}"
done
}
More information about the arch-commits
mailing list