diff options
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 11 |
3 files changed, 14 insertions, 8 deletions
@@ -1,6 +1,6 @@ | |||
1 | pkgbase = helmsman | 1 | pkgbase = helmsman |
2 | pkgdesc = Helm Charts as Code | 2 | pkgdesc = Helm Charts as Code |
3 | pkgver = 3.4.0 | 3 | pkgver = 3.4.1 |
4 | pkgrel = 1 | 4 | pkgrel = 1 |
5 | url = https://github.com/Praqma/helmsman | 5 | url = https://github.com/Praqma/helmsman |
6 | arch = x86_64 | 6 | arch = x86_64 |
@@ -10,8 +10,8 @@ pkgbase = helmsman | |||
10 | depends = helm-diff | 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.4.0.tar.gz::https://github.com/Praqma/helmsman/archive/v3.4.0.tar.gz | 13 | source = helmsman-3.4.1.tar.gz::https://github.com/Praqma/helmsman/archive/v3.4.1.tar.gz |
14 | sha256sums = 8a58c448e4571604ad72b9e3a049de422a8a300a75182ff6a303c98f5e1b2ad0 | 14 | sha256sums = b79508f64bc7b56eadba41a45ff0e4c6f12990210d464173bbba441635edebdb |
15 | 15 | ||
16 | pkgname = helmsman | 16 | pkgname = helmsman |
17 | 17 | ||
@@ -1,5 +1,6 @@ | |||
1 | /pkg/ | 1 | /pkg/ |
2 | /src/ | 2 | /src/ |
3 | /*.log | 3 | /*.log |
4 | /helmsman-*.tar.gz | 4 | /*.tar.gz |
5 | /helmsman-*.pkg.tar* | 5 | /*.pkg.tar* |
6 | /*.src.tar* | ||
@@ -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 |