diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 12 |
2 files changed, 12 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = ethr pkgdesc = Ethr is a Network Performance Measurement Tool for TCP, UDP & HTTP pkgver = 1.0.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/Microsoft/ethr arch = i686 arch = x86_64 @@ -1,7 +1,7 @@ # Maintainer: Julian Xhokaxhiu <info at julianxhokaxhiu dot com> pkgname=ethr pkgver=1.0.0 -pkgrel=1 +pkgrel=2 pkgdesc="Ethr is a Network Performance Measurement Tool for TCP, UDP & HTTP" arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64') url="https://github.com/Microsoft/ethr" @@ -16,6 +16,16 @@ sha256sums=('c4bf9d6d4e0659f491b6de6d66ddfe3735d8f6fa791debe9e8bfe0aa0e93ddd3') build() { cd "$srcdir/$pkgname-$pkgver" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" + + # Download dependencies + go get -u + go mod tidy + # Build go build } |