summaryrefslogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMatthias Lisin2020-05-15 21:26:37 +0200
committerMatthias Lisin2020-05-15 21:26:37 +0200
commit9597cea52c8e91372f01900b4a1f92e46dc7bf83 (patch)
tree68b5ce4dc247ce0a5c60587889c0cd856c98e15f /PKGBUILD
parente15772c0113c46918baa8af0db5a68cb3002cbbd (diff)
downloadpackages-9597cea52c8e91372f01900b4a1f92e46dc7bf83.tar.gz
packages-9597cea52c8e91372f01900b4a1f92e46dc7bf83.tar.bz2
packages-9597cea52c8e91372f01900b4a1f92e46dc7bf83.zip
upgpkg: helmsman 3.4.1-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD11
1 files changed, 8 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 50554bd..40399eb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
1# Maintainer: ml <ml@visu.li> 1# Maintainer: ml <ml@visu.li>
2pkgname=helmsman 2pkgname=helmsman
3pkgver=3.4.0 3pkgver=3.4.1
4pkgrel=1 4pkgrel=1
5pkgdesc='Helm Charts as Code' 5pkgdesc='Helm Charts as Code'
6arch=('x86_64' 'i686') 6arch=('x86_64' 'i686')
@@ -10,7 +10,12 @@ depends=('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")
13sha256sums=('8a58c448e4571604ad72b9e3a049de422a8a300a75182ff6a303c98f5e1b2ad0') 13sha256sums=('b79508f64bc7b56eadba41a45ff0e4c6f12990210d464173bbba441635edebdb')
14
15prepare() {
16 cd "${pkgname}-${pkgver}"
17 go mod download
18}
14 19
15build() { 20build() {
16 cd "${pkgname}-${pkgver}" 21 cd "${pkgname}-${pkgver}"
@@ -19,7 +24,7 @@ build() {
19 export CGO_CFLAGS="$CFLAGS" 24 export CGO_CFLAGS="$CFLAGS"
20 export CGO_CPPFLAGS="$CPPFLAGS" 25 export CGO_CPPFLAGS="$CPPFLAGS"
21 export CGO_CXXFLAGS="$CXXFLAGS" 26 export CGO_CXXFLAGS="$CXXFLAGS"
22 export GOFLAGS='-buildmode=pie -modcacherw -trimpath' 27 export GOFLAGS='-buildmode=pie -modcacherw -mod=readonly -trimpath'
23 # man makepkg(8), https://github.com/Praqma/helmsman/blob/master/Makefile 28 # man makepkg(8), https://github.com/Praqma/helmsman/blob/master/Makefile
24 _date=$(date --utc --date="@${SOURCE_DATE_EPOCH}" +'%d%m%y') 29 _date=$(date --utc --date="@${SOURCE_DATE_EPOCH}" +'%d%m%y')
25 go build -o "$pkgname" -ldflags "-X main.version=v${pkgver}-${_date}" ./cmd/helmsman 30 go build -o "$pkgname" -ldflags "-X main.version=v${pkgver}-${_date}" ./cmd/helmsman