diff options
author | Carlo Landmeter <clandmeter@alpinelinux.org> | 2019-03-11 20:33:13 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2019-03-11 20:34:48 +0000 |
commit | ecc31f981da3dc70f8eded4426dac71480d06c4c (patch) | |
tree | a177cf9a606c4acf154ff040d370e5199f6dbd51 /testing/minio/APKBUILD | |
parent | 709508c840bf5333f2ee5115afdcbf0cf331a263 (diff) | |
download | aports-ecc31f981da3dc70f8eded4426dac71480d06c4c.tar.bz2 aports-ecc31f981da3dc70f8eded4426dac71480d06c4c.tar.xz |
testing/minio: new aport
Diffstat (limited to 'testing/minio/APKBUILD')
-rw-r--r-- | testing/minio/APKBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/minio/APKBUILD b/testing/minio/APKBUILD new file mode 100644 index 0000000000..ed90ecaa3a --- /dev/null +++ b/testing/minio/APKBUILD @@ -0,0 +1,37 @@ +# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org> +# Maintainer: +pkgname=minio +_pkgver="RELEASE.2019-03-06T22-47-10Z" +pkgver=${_pkgver#*.} +pkgver=${pkgver%T*} +pkgver=0.${pkgver//-} +pkgrel=0 +pkgdesc="An open source object storage server compatible with Amazon S3" +url="https://minio.io/" +arch="all" +license="Apache-2.0" +makedepends="go" +source="https://github.com/minio/minio/archive/$_pkgver.tar.gz" +builddir="$srcdir/src/github.com/minio/$pkgname" + +prepare() { + mkdir -p ${builddir%/*} + mv "$srcdir"/$pkgname-$_pkgver "$builddir"/ + cd "$builddir" + default_prepare +} + +build() { + cd "$builddir" + export GOPATH="$srcdir" + export CGO_ENABLED=0 + local _ldflags=$(go run buildscripts/gen-ldflags.go 2> /dev/null) + go build -tags kqueue --ldflags "$_ldflags" -o bin/minio +} + +package() { + install -Dm755 "$builddir"/bin/minio \ + "$pkgdir"/usr/bin/minio +} + +sha512sums="09c1ec200320f0843fd41711a2fe1596af906c84d82dfa080a15fa8e98713601adbc21b91d4c82d436f128cc00fe75575f88ddefc25e1ce5ed72bd2d65dfce12 RELEASE.2019-03-06T22-47-10Z.tar.gz" |