aboutsummaryrefslogtreecommitdiffstats
path: root/testing/cloudfoundry-cli/APKBUILD
blob: 9f77c11d8486ec5edc0bbadda61fd5dd3c1cb133 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Contributor: Thomas Boerger <thomas@webhippie.de>
# Maintainer: Thomas Boerger <thomas@webhippie.de>
pkgname=cloudfoundry-cli
pkgver=6.48.0
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="7f05e78fb0db6732d08f1e549f0e1caf7cf700ef48d4864f7f8dbbb2b31b0926eb9b6a0bae156801974c5a7c3fa283306fe71ffa26f9d734e9777276ec7de9e3  cloudfoundry-cli-6.48.0.tar.gz"