diff options
Diffstat (limited to 'community/govc/APKBUILD')
-rw-r--r-- | community/govc/APKBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/community/govc/APKBUILD b/community/govc/APKBUILD new file mode 100644 index 00000000000..4441d44d6aa --- /dev/null +++ b/community/govc/APKBUILD @@ -0,0 +1,31 @@ +# Contributor: Patrycja Rosa <alpine@ptrcnull.me> +# Maintainer: Patrycja Rosa <alpine@ptrcnull.me> +pkgname=govc +pkgver=0.36.3 +pkgrel=1 +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=" +742c37be81fde603e78d862c2401d6be8efaaaa8929193379ad13651f9ba0b0792571742a2c4bed28d19af9056f3e45c67ad22cc6913c823ee78e807afd874e2 govc-0.36.3.tar.gz +" |