mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 20:36:40 +02:00
testing/cloudfoundry-cli: upgrade to 7.2.0
This has support for go modules, which go 1.16 by default expects.
This commit is contained in:
parent
209760b41a
commit
a07d360799
@ -1,28 +1,37 @@
|
||||
# Contributor: Thomas Boerger <thomas@webhippie.de>
|
||||
# Maintainer: Thomas Boerger <thomas@webhippie.de>
|
||||
pkgname=cloudfoundry-cli
|
||||
pkgver=6.51.0
|
||||
pkgrel=2
|
||||
pkgver=7.2.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"
|
||||
checkdepends="ginkgo"
|
||||
options="!check" # some tests fail
|
||||
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
|
||||
export GOPATH="$srcdir/go"
|
||||
export GOCACHE="$srcdir/go-build"
|
||||
export GOTEMPDIR="$srcdir/go"
|
||||
|
||||
cd src/code.cloudfoundry.org/cli
|
||||
GOPATH="$builddir" make build
|
||||
export GOFLAGS="$GOFLAGS -mod=mod -modcacherw"
|
||||
|
||||
build() {
|
||||
make build GOFLAGS="$GOFLAGS"
|
||||
}
|
||||
|
||||
check() {
|
||||
make test GOFLAGS="$GOFLAGS"
|
||||
}
|
||||
|
||||
package() {
|
||||
mkdir -p "$pkgdir"/usr/bin
|
||||
install -Dm755 out/cf out/cf6 \
|
||||
"$pkgdir"/usr/bin
|
||||
install -Dm755 out/cf "$pkgdir"/usr/bin/cf
|
||||
}
|
||||
|
||||
sha512sums="434702d2dc1f1c6727fe7a8a39eb91730d228cf2dfbdf294b68212b1e5cf362032ade26461d2e6951e1eadfc2884a8358f89ec42ddab9c3bb2279a87d3cb6719 cloudfoundry-cli-6.51.0.tar.gz"
|
||||
sha512sums="
|
||||
9f194460c6ae00666367e60d6053c916ea162946dd198527eddc8dad6c94e0f85816d1000aed9cea825e13674df7c68e90d12be948e30351db4b3b28052bf29d cloudfoundry-cli-7.2.0.tar.gz
|
||||
"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user