blob: cc2775be351f3b725524321b559a08dddc1e62c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Maintainer: Chloe Kudryavtsev <toast@toastin.space>
pkgname=minio-client
_pkgname=mc
_pkgver='RELEASE.2020-02-05T20-07-22Z'
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="bcf77211c86270c70fed0ab7c1ad25895c082a08189872691bdbdb17141e96aa9fe821c04e28ac7a935933faa7b7f06b6ad0aa743e9ad0fb61681a8e767b4f1b mc-RELEASE.2020-02-05T20-07-22Z.tar.gz"
|