diff options
author | Julian Xhokaxhiu | 2021-04-22 22:28:39 +0200 |
---|---|---|
committer | Julian Xhokaxhiu | 2021-04-22 22:28:39 +0200 |
commit | 573bb90b402c8d71e6965aa8c0617c580bddb979 (patch) | |
tree | a999a402721ae271eeaa96f2adcbdaaa8d2b52f4 | |
parent | dc42dacedf785c3f517741bb4a859f20b7527830 (diff) | |
download | aur-ethr.tar.gz |
1.0.0-2
Improve build using the https://wiki.archlinux.org/index.php/Go_package_guidelines
-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 } |