# Contributor: Thomas Boerger # Maintainer: Thomas Boerger setvar pkgname = 'cloudfoundry-cli' setvar pkgver = '6.18.0' setvar pkgrel = '0' setvar pkgdesc = ""A CLI for Cloud Foundry written in Go"" setvar url = ""https://github.com/cloudfoundry/cli"" setvar arch = ""all"" setvar license = ""Apache 2.0"" setvar depends = """" setvar depends_dev = """" setvar makedepends = ""$depends_dev go bash"" setvar install = """" setvar subpackages = """" setvar source = ""${pkgname}-${pkgver}.tar.gz::https://github.com/cloudfoundry/cli/archive/v$pkgver.tar.gz"" setvar builddir = ""${srcdir}/cli-${pkgver}"" setvar _godir = ""${srcdir}/go"" setvar _gourl = ""github.com/cloudfoundry/cli"" proc 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 } proc package { cd "$_godir"/bin install -Dm755 main \ "${pkgdir}/usr/bin/cf" || return 1 } setvar md5sums = ""78a6e60400c5478cce02f18e8933faa4 cloudfoundry-cli-6.18.0.tar.gz"" setvar sha256sums = ""499fdd87c595d5da4f8f9d1208633247fcc75040d37fbd9a75457e3d309722f8 cloudfoundry-cli-6.18.0.tar.gz"" setvar sha512sums = ""d514fc7a76602744282ddeb39e46b7fce3817526046774a42e0aaee28d21bf689fc17a53515044cc10e1a7a2a286ab1cf22072d1d251080926683f2d5a350b56 cloudfoundry-cli-6.18.0.tar.gz""