From ad98e15a2e7237169b6dfe12d1513f0ce1406e1b Mon Sep 17 00:00:00 2001 From: Matthias Lisin Date: Wed, 13 May 2020 14:46:27 +0200 Subject: upgpkg: helmsman 3.3.0-2 --- PKGBUILD | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'PKGBUILD') diff --git a/PKGBUILD b/PKGBUILD index 42edbbf..e6b7ebd 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,12 +1,12 @@ # Maintainer: ml pkgname=helmsman pkgver=3.3.0 -pkgrel=1 +pkgrel=2 pkgdesc='Helm Charts as Code' arch=('x86_64' 'i686') url='https://github.com/Praqma/helmsman' license=('MIT') -depends=('helm' 'kubectl') +depends=('helm-diff' 'kubectl') optdepends=('ruby-hiera-eyaml: backend for secret encryption') makedepends=('go') source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") @@ -14,10 +14,13 @@ sha256sums=('e9116122751a6448129d2e14f01b2777f66f02d534c5985bb5dc16eedca0387e') build() { cd "${pkgname}-${pkgver}" + export CGO_ENABLED=1 export CGO_LDFLAGS="$LDFLAGS" + export CGO_CFLAGS="$CFLAGS" + export CGO_CPPFLAGS="$CPPFLAGS" + export CGO_CXXFLAGS="$CXXFLAGS" export GOFLAGS='-buildmode=pie -modcacherw -trimpath' - # https://github.com/Praqma/helmsman/blob/master/Makefile - # man makepkg(8) + # man makepkg(8), https://github.com/Praqma/helmsman/blob/master/Makefile _date=$(date --utc --date="@${SOURCE_DATE_EPOCH}" +'%d%m%y') go build -o "$pkgname" -ldflags "-X main.version=v${pkgver}-${_date}" ./cmd/helmsman } -- cgit v1.2.3-70-g09d2