blob: cead987c291a7826f191b7f84fe3ec648759b9f5 (
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-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"
|