diff options
author | Chloe Kudryavtsev <toast@toastin.space> | 2019-05-15 01:20:58 -0400 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-05-15 16:57:14 +0000 |
commit | 6ac6ab303dfbad2f1e9d11642a0a260deadf4612 (patch) | |
tree | db424e10edc7489d41b1b71a90075d369feb2795 /testing/minio-client | |
parent | 71ac17d05e9a025b47316d42883c531dd97c66da (diff) | |
download | aports-6ac6ab303dfbad2f1e9d11642a0a260deadf4612.tar.bz2 aports-6ac6ab303dfbad2f1e9d11642a0a260deadf4612.tar.xz |
testing/minio-client: new aport
A client for MinIO usage and administration.
Closes GH-7888
Diffstat (limited to 'testing/minio-client')
-rw-r--r-- | testing/minio-client/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/minio-client/APKBUILD b/testing/minio-client/APKBUILD new file mode 100644 index 0000000000..5174daab8d --- /dev/null +++ b/testing/minio-client/APKBUILD @@ -0,0 +1,45 @@ +# Maintainer: Chloe Kudryavtsev <toast@toastin.space> +pkgname=minio-client +_pkgname=mc +_pkgver='RELEASE.2019-05-01T23-27-44Z' +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="21fb858d009a998661a46261881a205673a4b1db4ec099701a87ca8c825aebe139073424e6e90d573285fbd8cef508fe2292c06116999e83fc7214e2ae703a33 RELEASE.2019-05-01T23-27-44Z.tar.gz" |