blob: 6ce115d4a42ce5c87bae5a9d3bb30cfd878883c8 (
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.2019-10-09T22-54-57Z'
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="a26086c548027687b42fd3fd46fea3776ecdc9aa101fd3389fdd3ef1f562cda6f0ac46bb179f764c65c8fd3ff258acf33381f8d94e2b3272a1253a2a929a5c3e mc-RELEASE.2019-10-09T22-54-57Z.tar.gz"
|