From 9597cea52c8e91372f01900b4a1f92e46dc7bf83 Mon Sep 17 00:00:00 2001 From: Matthias Lisin Date: Fri, 15 May 2020 21:26:37 +0200 Subject: upgpkg: helmsman 3.4.1-1 --- .SRCINFO | 6 +++--- .gitignore | 5 +++-- PKGBUILD | 11 ++++++++--- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 3c9826e..350dc3b 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = helmsman pkgdesc = Helm Charts as Code - pkgver = 3.4.0 + pkgver = 3.4.1 pkgrel = 1 url = https://github.com/Praqma/helmsman arch = x86_64 @@ -10,8 +10,8 @@ pkgbase = helmsman depends = helm-diff depends = kubectl optdepends = ruby-hiera-eyaml: backend for secret encryption - source = helmsman-3.4.0.tar.gz::https://github.com/Praqma/helmsman/archive/v3.4.0.tar.gz - sha256sums = 8a58c448e4571604ad72b9e3a049de422a8a300a75182ff6a303c98f5e1b2ad0 + source = helmsman-3.4.1.tar.gz::https://github.com/Praqma/helmsman/archive/v3.4.1.tar.gz + sha256sums = b79508f64bc7b56eadba41a45ff0e4c6f12990210d464173bbba441635edebdb pkgname = helmsman diff --git a/.gitignore b/.gitignore index 37e29d6..f1ecb61 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ /pkg/ /src/ /*.log -/helmsman-*.tar.gz -/helmsman-*.pkg.tar* +/*.tar.gz +/*.pkg.tar* +/*.src.tar* diff --git a/PKGBUILD b/PKGBUILD index 50554bd..40399eb 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: ml pkgname=helmsman -pkgver=3.4.0 +pkgver=3.4.1 pkgrel=1 pkgdesc='Helm Charts as Code' arch=('x86_64' 'i686') @@ -10,7 +10,12 @@ depends=('helm-diff' 'kubectl') optdepends=('ruby-hiera-eyaml: backend for secret encryption') makedepends=('go') source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") -sha256sums=('8a58c448e4571604ad72b9e3a049de422a8a300a75182ff6a303c98f5e1b2ad0') +sha256sums=('b79508f64bc7b56eadba41a45ff0e4c6f12990210d464173bbba441635edebdb') + +prepare() { + cd "${pkgname}-${pkgver}" + go mod download +} build() { cd "${pkgname}-${pkgver}" @@ -19,7 +24,7 @@ build() { export CGO_CFLAGS="$CFLAGS" export CGO_CPPFLAGS="$CPPFLAGS" export CGO_CXXFLAGS="$CXXFLAGS" - export GOFLAGS='-buildmode=pie -modcacherw -trimpath' + export GOFLAGS='-buildmode=pie -modcacherw -mod=readonly -trimpath' # man makepkg(8), https://github.com/Praqma/helmsman/blob/master/Makefile _date=$(date --utc --date="@${SOURCE_DATE_EPOCH}" +'%d%m%y') go build -o "$pkgname" -ldflags "-X main.version=v${pkgver}-${_date}" ./cmd/helmsman -- cgit v1.2.3-70-g09d2