# Contributor: Thomas Boerger # Maintainer: Thomas Boerger pkgname=cloudfoundry-cli pkgver=6.47.1 pkgrel=0 pkgdesc="A CLI for Cloud Foundry written in Go" url="https://github.com/cloudfoundry/cli" arch="all !s390x !armv7" license="Apache-2.0" makedepends="go bash" source="$pkgname-$pkgver.tar.gz::https://github.com/cloudfoundry/cli/archive/v$pkgver.tar.gz" builddir="$srcdir/cli-$pkgver" build() { mkdir -p src/code.cloudfoundry.org/ ln -fs "$builddir" src/code.cloudfoundry.org/cli cd src/code.cloudfoundry.org/cli GOPATH="$builddir" make build } package() { mkdir -p "$pkgdir"/usr/bin install -Dm755 out/cf out/cf6 \ "$pkgdir"/usr/bin } sha512sums="15b8be875e737f94298d6d0f0a2e9a0df821b30c13a0755bc950805ed6c14bd45040686f7fd7fb800ab44ec50ea9f8484faa2d89565fdb52a1afd00ff94697d2 cloudfoundry-cli-6.47.1.tar.gz"