summaryrefslogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD10
1 files changed, 5 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index e75dafa..022907e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
1# Maintainer: ml <ml@visu.li> 1# Maintainer: ml <ml@visu.li>
2pkgname=helmsman 2pkgname=helmsman
3pkgver=3.4.4 3pkgver=3.4.6
4pkgrel=2 4pkgrel=1
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'
@@ -12,7 +12,7 @@ optdepends=(
12 'helm-secrets: backend for secret encryption') 12 'helm-secrets: backend for secret encryption')
13makedepends=('go') 13makedepends=('go')
14source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz") 14source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
15sha256sums=('220be069c610c0b80789336648d318ed2046394e7a3f9b6119555fe35f19c5b2') 15sha256sums=('53f4ced9d274f7af7efd7462c77ed5536971efe5480e7ed9e1a3cc067acfadb2')
16 16
17prepare() { 17prepare() {
18 cd "${pkgname}-${pkgver}" 18 cd "${pkgname}-${pkgver}"
@@ -26,9 +26,9 @@ build() {
26 export CGO_CFLAGS="$CFLAGS" 26 export CGO_CFLAGS="$CFLAGS"
27 export CGO_CPPFLAGS="$CPPFLAGS" 27 export CGO_CPPFLAGS="$CPPFLAGS"
28 export CGO_CXXFLAGS="$CXXFLAGS" 28 export CGO_CXXFLAGS="$CXXFLAGS"
29 export GOFLAGS='-buildmode=pie -modcacherw -mod=readonly -trimpath' 29 export GOFLAGS='-buildmode=pie -modcacherw -mod=readonly -trimpath -ldflags=-linkmode=external'
30 # man makepkg(8), https://github.com/Praqma/helmsman/blob/master/Makefile 30 # man makepkg(8), https://github.com/Praqma/helmsman/blob/master/Makefile
31 _date=$(date --utc --date="@${SOURCE_DATE_EPOCH}" +'%d%m%y') 31 TZ=UTC printf -v _date '%(%d%m%y)T' ${SOURCE_DATE_EPOCH:-}
32 go build -o "$pkgname" -ldflags "-X main.version=v${pkgver}-${_date}" ./cmd/helmsman 32 go build -o "$pkgname" -ldflags "-X main.version=v${pkgver}-${_date}" ./cmd/helmsman
33} 33}
34 34