diff options
author | ml | 2021-06-09 00:42:43 +0200 |
---|---|---|
committer | ml | 2021-06-09 00:42:43 +0200 |
commit | 86b7adb732b061791827706216134935ab3e95b1 (patch) | |
tree | 06e1e3cd79fd182e789d14f6178c6cbe7b685ba7 /PKGBUILD | |
parent | 54b844c53612e53524eeb54bc0e08345e6da728d (diff) | |
download | aur-86b7adb732b061791827706216134935ab3e95b1.tar.gz |
updpkg: sonobuoy 0.51.0-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -1,6 +1,6 @@ # Maintainer: ml <> pkgname=sonobuoy -pkgver=0.50.0 +pkgver=0.51.0 pkgrel=1 pkgdesc='Diagnostic tool for Kubernetes clusters' arch=('x86_64') @@ -11,32 +11,32 @@ optdepends=( 'docker: sonobuoy images subcommand' 'kubectl: advances workflows') makedepends=('go' 'git') -source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz") -sha256sums=('6ade7b7ecf1b0c6338ba6b404f68b76ed23a368d27317b39f3cf1d0f89057b6c') +source=("$url/archive/v$pkgver/$pkgname-$pkgver.tar.gz") +sha256sums=('a08fa6a80dd9d270a8078c3545c3ddc423ce67db669eb9e892bf0992c615def4') build() { local _commit _defines - _commit=$(bsdcat "${pkgname}-${pkgver}.tar.gz" | git get-tar-commit-id) - cd "${pkgname}-${pkgver}" + _commit=$(bsdcat "$pkgname-$pkgver.tar.gz" | git get-tar-commit-id) + cd "$pkgname-$pkgver" export CGO_ENABLED=1 export CGO_LDFLAGS="$LDFLAGS" export CGO_CFLAGS="$CFLAGS" export CGO_CPPFLAGS="$CPPFLAGS" export CGO_CXXFLAGS="$CXXFLAGS" - export GOFLAGS='-buildmode=pie -modcacherw -mod=readonly -trimpath' + export GOFLAGS='-buildmode=pie -modcacherw -trimpath' _defines=( - "github.com/vmware-tanzu/sonobuoy/pkg/buildinfo.Version=v${pkgver}" - "github.com/vmware-tanzu/sonobuoy/pkg/buildinfo.GitSHA=${_commit}" + "github.com/vmware-tanzu/sonobuoy/pkg/buildinfo.Version=v$pkgver" + "github.com/vmware-tanzu/sonobuoy/pkg/buildinfo.GitSHA=$_commit" ) go build -o "$pkgname" -ldflags "-linkmode=external ${_defines[*]/#/-X=}" } check() { - cd "${pkgname}-${pkgver}" + cd "$pkgname-$pkgver" GODEBUG=x509ignoreCN=0 go test ./cmd/... ./pkg/... } package() { - cd "${pkgname}-${pkgver}" - install -Dm755 "$pkgname" -t "${pkgdir}/usr/bin" + cd "$pkgname-$pkgver" + install -Dm755 "$pkgname" -t "$pkgdir/usr/bin" } |