# Contributor: Kevin Daudt # Maintainer: Kevin Daudt pkgname=crane pkgver=0.15.2 pkgrel=2 pkgdesc="tool for interacting with remote images and registries" url="https://github.com/google/go-containerregistry/tree/main/cmd/crane" arch="all" license="Apache-2.0" makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/google/go-containerregistry/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/go-containerregistry-$pkgver/" export GOFLAGS="$GOFLAGS -modcacherw" export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" build() { msg "Building crane" go build ./cmd/crane/ } check() { go test -v ./cmd/crane } package() { install -Dm0755 crane -t "$pkgdir"/usr/bin/ } sha512sums=" 0f2b8f113ed3a8abcdbc9c7d9f7ab31dc97b20476bfd3e7c289232808296d6b9c83cbcc0d3f3342315bddb70f24cca99a424c3a1a1e33a1ed0c4f5d03268ef8d crane-0.15.2.tar.gz "