# Contributor: Patrycja Rosa # Maintainer: Patrycja Rosa pkgname=govc pkgver=0.30.7 pkgrel=0 pkgdesc="vSphere CLI built on top of govmomi" url="https://github.com/vmware/govmomi/blob/main/govc/README.md" arch="all" license="Apache-2.0" makedepends="go bash coreutils" source="https://github.com/vmware/govmomi/archive/v$pkgver/govc-$pkgver.tar.gz" builddir="$srcdir/govmomi-$pkgver/govc" # !check: no tests provided # net: fetch dependencies options="!check net" export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" build() { go build -o "$builddir"/govc . } package() { install -Dm755 "$builddir"/govc "$pkgdir"/usr/bin/govc } sha512sums=" 0f1a6df9e287ce9fadfcc8840132592c586553ab7f79b80ddc5efc10b9421cdcd342e84073a69d2d5c984c2436f290d67f101e4395c534f3b03b023cc3c385d4 govc-0.30.7.tar.gz "