aboutsummaryrefslogtreecommitdiffstats
path: root/testing/cloudfoundry-cli/APKBUILD
blob: 1eb2b4ad95d4092cc827b2fef4a2aea4fab04a79 (plain) (blame)
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.50.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="99fb2d59698c35e4dd5857806b646c43ad7225b0229f6559917031a953195db1881cb1245ed167c4ccd3604f8a192bf44a92be042141473fda56b989ffb3074d  cloudfoundry-cli-6.50.0.tar.gz"