summaryrefslogtreecommitdiff
path: root/testing/cloudfoundry-cli/APKBUILD
blob: b3215cf18ec8edf4b730ff1dd60294f4f1d5a361 (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
29
30
31
32
33
34
35
36
37
38
# 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"
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
}

md5sums="78a6e60400c5478cce02f18e8933faa4  cloudfoundry-cli-6.18.0.tar.gz"
sha256sums="499fdd87c595d5da4f8f9d1208633247fcc75040d37fbd9a75457e3d309722f8  cloudfoundry-cli-6.18.0.tar.gz"
sha512sums="d514fc7a76602744282ddeb39e46b7fce3817526046774a42e0aaee28d21bf689fc17a53515044cc10e1a7a2a286ab1cf22072d1d251080926683f2d5a350b56  cloudfoundry-cli-6.18.0.tar.gz"