diff options
author | Chloe Kudryavtsev <toast@toast.cafe> | 2019-09-19 15:48:38 -0400 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-24 16:18:03 -0300 |
commit | e57aa83211003937f86a5aeaf5d695a8cd4cc269 (patch) | |
tree | 107224fb6a2d8c3837f328de9f7e24335481cf81 | |
parent | 8d1c30db4ae22986319e978d64ec89dc84b70fb1 (diff) | |
download | aports-e57aa83211003937f86a5aeaf5d695a8cd4cc269.tar.bz2 aports-e57aa83211003937f86a5aeaf5d695a8cd4cc269.tar.xz |
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
-rw-r--r-- | testing/minio-client/APKBUILD | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/testing/minio-client/APKBUILD b/testing/minio-client/APKBUILD index fb4547622e..4f6fa39a3d 100644 --- a/testing/minio-client/APKBUILD +++ b/testing/minio-client/APKBUILD @@ -1,7 +1,7 @@ # 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" |