# Maintainer: Chloe Kudryavtsev pkgname=minio-client _pkgname=mc _pkgver='RELEASE.2020-05-05T06-03-47Z' pkgver=${_pkgver#*.} pkgver=${pkgver%T*} pkgver=0.${pkgver//-} pkgrel=0 pkgdesc="The MinIO Client" url="https://minio.io/" arch="all" license="Apache-2.0" makedepends="go" source="$_pkgname-$pkgver.tar.gz::https://github.com/minio/$_pkgname/archive/$_pkgver.tar.gz" builddir="$srcdir/$_pkgname-$_pkgver" options="net" export GOPATH="$srcdir" export CGO_ENABLED=0 build() { local _ldflags=$(go run buildscripts/gen-ldflags.go 2> /dev/null) go build -tags kqueue --ldflags "$_ldflags" -o bin/mc } check() { # mc/cmd is disabled, seems to be outdated and fails on all my systems go test -tags kqueue $(go list ./... | grep -v \ -e cmd \ ) } package() { install -Dm755 "$builddir"/bin/mc \ "$pkgdir"/usr/bin/mcli } cleanup_srcdir() { go clean -modcache default_cleanup_srcdir } sha512sums="0ddd3a1687a5db2729cfa4767666fdf8630cdeabf0b04af9fbc479255ecd3dd3f412b6daf92876fce879866cf531bb78ef8196752c872620a8f6f3c2c2024199 mc-0.20200505.tar.gz"