From 60bbe05ae6ecb985bd6749007af2bc71558d37a7 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Thu, 22 Dec 2022 20:27:26 +0300 Subject: helmsman: Update to 3.15.1-1 upstream release --- helmsman/PKGBUILD | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'helmsman/PKGBUILD') diff --git a/helmsman/PKGBUILD b/helmsman/PKGBUILD index 048e58a..04fb0de 100644 --- a/helmsman/PKGBUILD +++ b/helmsman/PKGBUILD @@ -1,23 +1,25 @@ -# Maintainer: ml +# Maintainer: Yigit Sever +# Contributor: ml # to build in clean chroot build helm-diff from AUR, then pass to build cmd: # $ extra-x86_64-build -- -I helm-diff-3.1.3-2-x86_64.pkg.tar.zst + pkgname=helmsman -pkgver=3.6.3 +pkgver=3.15.1 pkgrel=1 pkgdesc='Helm Charts as Code' arch=('x86_64' 'i686') url='https://github.com/Praqma/helmsman' license=('MIT') -depends=('helm-diff' 'kubectl') +depends=('helm' 'helm-diff' 'kubectl') optdepends=( 'ruby-hiera-eyaml: backend for secret encryption' 'helm-secrets: backend for secret encryption') makedepends=('go') -source=("$url/archive/v$pkgver/$pkgname-$pkgver.tar.gz") -sha256sums=('05ce86066028ed0fbb99902018953107432727abe297745de4013815b5bf6781') +source=("${pkgname}-${pkgver}.tar.gz::$url/archive/v$pkgver/$pkgname-$pkgver.tar.gz") +sha256sums=('e52b4ae1321906cea08cc01cd78e147167e01491d09a481dbf867ce904de36dd') build() { - cd "$pkgname-$pkgver" + cd "${pkgname}-${pkgver}" export CGO_ENABLED=1 export CGO_LDFLAGS="$LDFLAGS" export CGO_CFLAGS="$CFLAGS" @@ -26,18 +28,18 @@ build() { export GOFLAGS='-buildmode=pie -modcacherw -mod=readonly -trimpath' # man makepkg(8), https://github.com/Praqma/helmsman/blob/master/Makefile TZ=UTC printf -v _date '%(%d%m%y)T' "${SOURCE_DATE_EPOCH:- -1}" - go build -ldflags "-linkmode=external -X main.version=v$pkgver-$_date" ./cmd/helmsman + go build -ldflags "-linkmode=external -X main.version=v${pkgver}-${_date}" ./cmd/helmsman } check() { - cd "$pkgname-$pkgver" + cd "${pkgname}-${pkgver}" go test -short ./... } package() { - cd "$pkgname-$pkgver" - install -Dm755 "$pkgname" -t "$pkgdir/usr/bin" - install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" + cd "${pkgname}-${pkgver}" + install -Dm755 "${pkgname}" -t "${pkgdir}/usr/bin" + install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" # README, docs and examples install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname" -- cgit v1.2.3-70-g09d2