From 4e60cc6c00a83f75c3ddc4b7d97a80069035f200 Mon Sep 17 00:00:00 2001 From: ml Date: Wed, 13 Jan 2021 01:31:06 +0100 Subject: updpkg: helmsman 3.6.3-1 --- PKGBUILD | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) (limited to 'PKGBUILD') diff --git a/PKGBUILD b/PKGBUILD index b5aca72..048e58a 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,6 +1,8 @@ # Maintainer: 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.2 +pkgver=3.6.3 pkgrel=1 pkgdesc='Helm Charts as Code' arch=('x86_64' 'i686') @@ -11,16 +13,11 @@ 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=('56a50521b5ec443569080eaaa700e4d2bf890fc8a42048c1e0560fc5daa8ed8e') - -prepare() { - cd "${pkgname}-${pkgver}" - go mod download -} +source=("$url/archive/v$pkgver/$pkgname-$pkgver.tar.gz") +sha256sums=('05ce86066028ed0fbb99902018953107432727abe297745de4013815b5bf6781') build() { - cd "${pkgname}-${pkgver}" + cd "$pkgname-$pkgver" export CGO_ENABLED=1 export CGO_LDFLAGS="$LDFLAGS" export CGO_CFLAGS="$CFLAGS" @@ -29,20 +26,20 @@ 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 -o "$pkgname" -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}" - cp -a docs examples -t "${pkgdir}/usr/share/doc/${pkgname}" + install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname" + cp -a docs examples -t "$pkgdir/usr/share/doc/$pkgname" } -- cgit v1.2.3-70-g09d2