diff options
author | Matthias Lisin | 2020-05-15 21:26:37 +0200 |
---|---|---|
committer | Matthias Lisin | 2020-05-15 21:26:37 +0200 |
commit | 9597cea52c8e91372f01900b4a1f92e46dc7bf83 (patch) | |
tree | 68b5ce4dc247ce0a5c60587889c0cd856c98e15f /PKGBUILD | |
parent | e15772c0113c46918baa8af0db5a68cb3002cbbd (diff) | |
download | packages-9597cea52c8e91372f01900b4a1f92e46dc7bf83.tar.gz packages-9597cea52c8e91372f01900b4a1f92e46dc7bf83.tar.bz2 packages-9597cea52c8e91372f01900b4a1f92e46dc7bf83.zip |
upgpkg: helmsman 3.4.1-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -1,6 +1,6 @@ | |||
1 | # Maintainer: ml <ml@visu.li> | 1 | # Maintainer: ml <ml@visu.li> |
2 | pkgname=helmsman | 2 | pkgname=helmsman |
3 | pkgver=3.4.0 | 3 | pkgver=3.4.1 |
4 | pkgrel=1 | 4 | pkgrel=1 |
5 | pkgdesc='Helm Charts as Code' | 5 | pkgdesc='Helm Charts as Code' |
6 | arch=('x86_64' 'i686') | 6 | arch=('x86_64' 'i686') |
@@ -10,7 +10,12 @@ depends=('helm-diff' 'kubectl') | |||
10 | optdepends=('ruby-hiera-eyaml: backend for secret encryption') | 10 | optdepends=('ruby-hiera-eyaml: backend for secret encryption') |
11 | makedepends=('go') | 11 | makedepends=('go') |
12 | source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") | 12 | source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") |
13 | sha256sums=('8a58c448e4571604ad72b9e3a049de422a8a300a75182ff6a303c98f5e1b2ad0') | 13 | sha256sums=('b79508f64bc7b56eadba41a45ff0e4c6f12990210d464173bbba441635edebdb') |
14 | |||
15 | prepare() { | ||
16 | cd "${pkgname}-${pkgver}" | ||
17 | go mod download | ||
18 | } | ||
14 | 19 | ||
15 | build() { | 20 | build() { |
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 |