aboutsummaryrefslogtreecommitdiffstats
path: root/testing/cloudfoundry-cli/APKBUILD
blob: 87b196b451bb87e1133801e1e6289748d9180896 (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
29
30
31
32
33
34
35
36
# Contributor: Thomas Boerger <thomas@webhippie.de>
# Maintainer: Thomas Boerger <thomas@webhippie.de>
pkgname=cloudfoundry-cli
pkgver=6.18.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"
depends=""
depends_dev=""
makedepends="$depends_dev go bash"
install=""
subpackages=""
source="${pkgname}-${pkgver}.tar.gz::https://github.com/cloudfoundry/cli/archive/v$pkgver.tar.gz"

builddir="${srcdir}/cli-${pkgver}"
_godir="${srcdir}/go"
_gourl="github.com/cloudfoundry/cli"

build() {
	mkdir -p ${_godir}/bin ${_godir}/src/github.com/cloudfoundry
	ln -sf ${builddir} ${_godir}/src/github.com/cloudfoundry/cli

	export GOPATH="${_godir}"
	go install ${_gourl}/main || return 1
}

package() {
	cd "$_godir"/bin

	install -Dm755 main \
		"${pkgdir}/usr/bin/cf" || return 1
}

sha512sums="767a0a043b23a927256b16f976c967e3de8e181079bd6216f5500ce30f37883f7b1352144b40c38eb2bfec447d48c098cb6b57f7b2c693d5ddcb0a4cbb9ffca5  cloudfoundry-cli-6.18.0.tar.gz"