summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJean-Francois Chevrette2019-09-06 16:04:14 -0400
committerJean-Francois Chevrette2019-09-06 16:04:14 -0400
commit378b8df2dafcee8e4dd8163338613e302510e750 (patch)
tree6a98ae4446cbe2f3d1862c74a0e2c3141e70c895 /PKGBUILD
parent8e45ec82c3816a5b9a2f343d47c91b0ad5ca5c4d (diff)
downloadaur-378b8df2dafcee8e4dd8163338613e302510e750.tar.gz
strip pwd from go binary
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD3
1 files changed, 2 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index d345f2ceeb2..90993dc827b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
_pkgname=kapp
pkgname=${_pkgname}-git
pkgver=r193.b0d6b82
-pkgrel=1
+pkgrel=2
pkgdesc='kapp is a simple deployment tool focused on the concept of "Kubernetes application"'
url="https://get-kapp.io/"
license=('Apache')
@@ -28,6 +28,7 @@ build() {
cd "${srcdir}/src/github.com/k14s/${_pkgname}"
export GOPATH="${srcdir}"
+ export GOFLAGS="-gcflags=all=-trimpath=${PWD} -asmflags=all=-trimpath=${PWD} -ldflags=-extldflags=-zrelro -ldflags=-extldflags=-znow"
mkdir -p tmp
build_values_path="../../../${BUILD_VALUES:-./hack/build-values-default.yml}"