summaryrefslogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMatthias Lisin2020-05-13 14:46:27 +0200
committerMatthias Lisin2020-05-13 14:46:27 +0200
commitad98e15a2e7237169b6dfe12d1513f0ce1406e1b (patch)
tree70ab4f6fc58e973c0a8f0e34f2a4a58c97fbc011 /PKGBUILD
parent102d8ec031e578d1e1ff71e6945940319b508dfc (diff)
downloadpackages-ad98e15a2e7237169b6dfe12d1513f0ce1406e1b.tar.gz
packages-ad98e15a2e7237169b6dfe12d1513f0ce1406e1b.tar.bz2
packages-ad98e15a2e7237169b6dfe12d1513f0ce1406e1b.zip
upgpkg: helmsman 3.3.0-2
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD11
1 files changed, 7 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 42edbbf..e6b7ebd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,12 +1,12 @@
1# Maintainer: ml <ml@visu.li> 1# Maintainer: ml <ml@visu.li>
2pkgname=helmsman 2pkgname=helmsman
3pkgver=3.3.0 3pkgver=3.3.0
4pkgrel=1 4pkgrel=2
5pkgdesc='Helm Charts as Code' 5pkgdesc='Helm Charts as Code'
6arch=('x86_64' 'i686') 6arch=('x86_64' 'i686')
7url='https://github.com/Praqma/helmsman' 7url='https://github.com/Praqma/helmsman'
8license=('MIT') 8license=('MIT')
9depends=('helm' 'kubectl') 9depends=('helm-diff' 'kubectl')
10optdepends=('ruby-hiera-eyaml: backend for secret encryption') 10optdepends=('ruby-hiera-eyaml: backend for secret encryption')
11makedepends=('go') 11makedepends=('go')
12source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") 12source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
@@ -14,10 +14,13 @@ sha256sums=('e9116122751a6448129d2e14f01b2777f66f02d534c5985bb5dc16eedca0387e')
14 14
15build() { 15build() {
16 cd "${pkgname}-${pkgver}" 16 cd "${pkgname}-${pkgver}"
17 export CGO_ENABLED=1
17 export CGO_LDFLAGS="$LDFLAGS" 18 export CGO_LDFLAGS="$LDFLAGS"
19 export CGO_CFLAGS="$CFLAGS"
20 export CGO_CPPFLAGS="$CPPFLAGS"
21 export CGO_CXXFLAGS="$CXXFLAGS"
18 export GOFLAGS='-buildmode=pie -modcacherw -trimpath' 22 export GOFLAGS='-buildmode=pie -modcacherw -trimpath'
19 # https://github.com/Praqma/helmsman/blob/master/Makefile 23 # man makepkg(8), https://github.com/Praqma/helmsman/blob/master/Makefile
20 # man makepkg(8)
21 _date=$(date --utc --date="@${SOURCE_DATE_EPOCH}" +'%d%m%y') 24 _date=$(date --utc --date="@${SOURCE_DATE_EPOCH}" +'%d%m%y')
22 go build -o "$pkgname" -ldflags "-X main.version=v${pkgver}-${_date}" ./cmd/helmsman 25 go build -o "$pkgname" -ldflags "-X main.version=v${pkgver}-${_date}" ./cmd/helmsman
23} 26}