Commit 2ee35e73 authored by Chloe Kudryavtsev's avatar Chloe Kudryavtsev
Browse files

testing/minio-client: upgrade to 0.20190920

Significant changes:
- Now that we are on go 1.13, enabling go111modules isn't needed
- With full go111modules support GOPATH is mostly there for caching
parent b5e50884
Pipeline #272 passed with stage
in 19 seconds
# Maintainer: Chloe Kudryavtsev <toast@toastin.space>
pkgname=minio-client
_pkgname=mc
_pkgver='RELEASE.2019-08-21T19-59-10Z'
_pkgver='RELEASE.2019-09-20T00-09-55Z'
pkgver=${_pkgver#*.}
pkgver=${pkgver%T*}
pkgver=0.${pkgver//-}
......@@ -12,26 +12,20 @@ arch="all"
license="Apache-2.0"
makedepends="go"
source="$_pkgname-$_pkgver.tar.gz::https://github.com/minio/$_pkgname/archive/$_pkgver.tar.gz"
builddir="$srcdir/src/github.com/minio/$_pkgname"
builddir="$srcdir/$_pkgname-$_pkgver"
options="net"
export GOPATH="$srcdir"
export CGO_ENABLED=0
prepare() {
mkdir -p ${builddir%/*}
mv "$srcdir"/$_pkgname-$_pkgver "$builddir"/
default_prepare
}
build() {
local _ldflags=$(go run buildscripts/gen-ldflags.go 2> /dev/null)
GO111MODULE=on go build -tags kqueue --ldflags "$_ldflags" -o bin/mc
go build -tags kqueue --ldflags "$_ldflags" -o bin/mc
}
check() {
# mc/cmd is disabled, seems to be outdated and fails on all my systems
GO111MODULE=on go test -tags kqueue $(go list ./... | grep -v \
go test -tags kqueue $(go list ./... | grep -v \
-e cmd \
)
}
......@@ -45,4 +39,4 @@ cleanup_srcdir() {
go clean -modcache
default_cleanup_srcdir
}
sha512sums="7e802f95c3b85ccdc31e4e1093953fa348f0935b6c85de6d5263aeba8489611bfb702a17e7c36abccadbcd558480c8b64be463dfe76d67e1e7570586db6e97c9 mc-RELEASE.2019-08-21T19-59-10Z.tar.gz"
sha512sums="826f670b276d2a002312f9a4e06dd3dc53703eff7e651790c03e05c88df349b991628639c29ce910f305c1fb991b746e1279b6ceef6dbdbc4a61fc956b3e6c97 mc-RELEASE.2019-09-20T00-09-55Z.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment