summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Lisin2020-05-13 14:46:27 +0200
committerMatthias Lisin2020-05-13 14:46:27 +0200
commitad98e15a2e7237169b6dfe12d1513f0ce1406e1b (patch)
tree70ab4f6fc58e973c0a8f0e34f2a4a58c97fbc011
parent102d8ec031e578d1e1ff71e6945940319b508dfc (diff)
downloadpackages-ad98e15a2e7237169b6dfe12d1513f0ce1406e1b.tar.gz
packages-ad98e15a2e7237169b6dfe12d1513f0ce1406e1b.tar.bz2
packages-ad98e15a2e7237169b6dfe12d1513f0ce1406e1b.zip
upgpkg: helmsman 3.3.0-2
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD11
2 files changed, 9 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b8ba1b6..d579c57 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,13 @@
1pkgbase = helmsman 1pkgbase = helmsman
2 pkgdesc = Helm Charts as Code 2 pkgdesc = Helm Charts as Code
3 pkgver = 3.3.0 3 pkgver = 3.3.0
4 pkgrel = 1 4 pkgrel = 2
5 url = https://github.com/Praqma/helmsman 5 url = https://github.com/Praqma/helmsman
6 arch = x86_64 6 arch = x86_64
7 arch = i686 7 arch = i686
8 license = MIT 8 license = MIT
9 makedepends = go 9 makedepends = go
10 depends = helm 10 depends = helm-diff
11 depends = kubectl 11 depends = kubectl
12 optdepends = ruby-hiera-eyaml: backend for secret encryption 12 optdepends = ruby-hiera-eyaml: backend for secret encryption
13 source = helmsman-3.3.0.tar.gz::https://github.com/Praqma/helmsman/archive/v3.3.0.tar.gz 13 source = helmsman-3.3.0.tar.gz::https://github.com/Praqma/helmsman/archive/v3.3.0.tar.gz
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}