aboutsummaryrefslogtreecommitdiffstats
path: root/testing/cloudfoundry-cli
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2019-08-18 15:54:13 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2019-08-18 15:58:02 +0200
commitfb5e1bf1fe47e6f4f1fe125ca1a104ff4c533b4a (patch)
tree04ac4e786e2bf2ed68776690c1e8e4fd5eccf570 /testing/cloudfoundry-cli
parent78087d76cbfad8be919645e2ce9d7f9c8422969f (diff)
downloadaports-fb5e1bf1fe47e6f4f1fe125ca1a104ff4c533b4a.tar.bz2
aports-fb5e1bf1fe47e6f4f1fe125ca1a104ff4c533b4a.tar.xz
testing/cloudfoundry-cli: upgrade to 6.46.0
Modernize while at it. The previous version didn't build anymore, upgrading helps, also using the provided makefile.
Diffstat (limited to 'testing/cloudfoundry-cli')
-rw-r--r--testing/cloudfoundry-cli/APKBUILD32
1 files changed, 12 insertions, 20 deletions
diff --git a/testing/cloudfoundry-cli/APKBUILD b/testing/cloudfoundry-cli/APKBUILD
index 87b196b451..f6ad73a3b6 100644
--- a/testing/cloudfoundry-cli/APKBUILD
+++ b/testing/cloudfoundry-cli/APKBUILD
@@ -1,36 +1,28 @@
# Contributor: Thomas Boerger <thomas@webhippie.de>
# Maintainer: Thomas Boerger <thomas@webhippie.de>
pkgname=cloudfoundry-cli
-pkgver=6.18.0
+pkgver=6.46.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"
+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 ${_godir}/bin ${_godir}/src/github.com/cloudfoundry
- ln -sf ${builddir} ${_godir}/src/github.com/cloudfoundry/cli
+ mkdir -p src/code.cloudfoundry.org/
+ ln -fs "$builddir" src/code.cloudfoundry.org/cli
- export GOPATH="${_godir}"
- go install ${_gourl}/main || return 1
+ cd src/code.cloudfoundry.org/cli
+ GOPATH="$builddir" make build
}
package() {
- cd "$_godir"/bin
-
- install -Dm755 main \
- "${pkgdir}/usr/bin/cf" || return 1
+ mkdir -p "$pkgdir"/usr/bin
+ install -Dm755 out/cf out/cf6 \
+ "$pkgdir"/usr/bin
}
-sha512sums="767a0a043b23a927256b16f976c967e3de8e181079bd6216f5500ce30f37883f7b1352144b40c38eb2bfec447d48c098cb6b57f7b2c693d5ddcb0a4cbb9ffca5 cloudfoundry-cli-6.18.0.tar.gz"
+sha512sums="c5511f7d2a5e055ec5db6119dd3a5235c9f8c4272e4955b6c9a904faa67d16ff35d6e3f11025afdcead417bffe91d48c6caf8b8b684498a4bfd5c9325d527b96 cloudfoundry-cli-6.46.0.tar.gz"