# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=cri-tools pkgver=1.30.0 pkgrel=2 pkgdesc="CLI tool for Kubelet Container Runtime Interface (CRI)" url="https://github.com/kubernetes-sigs/cri-tools" arch="all !armhf" license="Apache-2.0" makedepends="go" options="!check" # no check available source="$pkgname-$pkgver.tar.gz::https://github.com/kubernetes-sigs/cri-tools/archive/v$pkgver.tar.gz" export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" build() { case "$CARCH" in armv7|riscv64|s390x|x86|loongarch64) CGO_ENABLED=1 make all;; *) make all;; esac } check() { make test } package() { make BINDIR="$pkgdir"/usr/bin install } sha512sums=" 8fa580e804a3ab888a2da76a9233c8a7c872d65fd0e34efbdf2db45ae06c924ff35b6563ea76e40cae4a7a0b41480ce246eacc3d6e2b7d2aaec30eadb1edb08f cri-tools-1.30.0.tar.gz "