diff options
author | ml | 2021-01-13 01:31:06 +0100 |
---|---|---|
committer | ml | 2021-01-13 01:32:17 +0100 |
commit | 4e60cc6c00a83f75c3ddc4b7d97a80069035f200 (patch) | |
tree | eaa4945dfcf16534254a28f9d239e4d8948b6d2c | |
parent | 8929eec6fe55481cfb93460ef8949fc62bf72e8e (diff) | |
download | aur-4e60cc6c00a83f75c3ddc4b7d97a80069035f200.tar.gz |
updpkg: helmsman 3.6.3-1
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 29 |
2 files changed, 16 insertions, 19 deletions
@@ -1,6 +1,6 @@ pkgbase = helmsman pkgdesc = Helm Charts as Code - pkgver = 3.6.2 + pkgver = 3.6.3 pkgrel = 1 url = https://github.com/Praqma/helmsman arch = x86_64 @@ -11,8 +11,8 @@ pkgbase = helmsman depends = kubectl optdepends = ruby-hiera-eyaml: backend for secret encryption optdepends = helm-secrets: backend for secret encryption - source = https://github.com/Praqma/helmsman/archive/v3.6.2/helmsman-3.6.2.tar.gz - sha256sums = 56a50521b5ec443569080eaaa700e4d2bf890fc8a42048c1e0560fc5daa8ed8e + source = https://github.com/Praqma/helmsman/archive/v3.6.3/helmsman-3.6.3.tar.gz + sha256sums = 05ce86066028ed0fbb99902018953107432727abe297745de4013815b5bf6781 pkgname = helmsman @@ -1,6 +1,8 @@ # Maintainer: ml <ml@visu.li> +# 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" } |