blob: 6c6375754ae1365f3ed9f060c5c2b4cbfbe65502 (
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
43
44
45
|
# Maintainer: Chloe Kudryavtsev <toast@toastin.space>
pkgname=minio-client
_pkgname=mc
_pkgver='RELEASE.2019-05-23T01-33-27Z'
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="https://github.com/minio/$_pkgname/archive/$_pkgver.tar.gz"
builddir="$srcdir/src/github.com/minio/$_pkgname"
options="!check" # tests seem to lag behind code
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
}
check() {
GO111MODULE=on go test -tags kqueue ./...
}
package() {
install -Dm755 "$builddir"/bin/mc \
"$pkgdir"/usr/bin/mc
}
cleanup_srcdir() {
go clean -modcache
default_cleanup_srcdir
}
sha512sums="1643f8b459506e326b86cbeb2962c932cf85e0ff0d08c0852e4c840e713df2b61f80455c01a434e91cf00444c8770bd037f511b8e54924dc2ccf55d2595d9b4e RELEASE.2019-05-23T01-33-27Z.tar.gz"
|