blob: 60a6637664e698655023fe3748b63f9482d23bb8 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Chloe Kudryavtsev <toast@toastin.space>
pkgname=minio
_pkgver='RELEASE.2019-06-13T01-41-13Z'
pkgver=${_pkgver#*.}
pkgver=${pkgver%T*}
pkgver=0.${pkgver//-}
pkgrel=0
pkgdesc="An open source object storage server compatible with Amazon S3"
pkgusers="minio"
pkggroups="minio"
url="https://minio.io/"
arch="all"
license="Apache-2.0"
install="minio.pre-install"
makedepends="go"
source="
minio.initd
minio.confd
https://github.com/minio/minio/archive/$_pkgver.tar.gz
"
builddir="$srcdir/src/github.com/minio/$pkgname"
options="!check" # pkg/disk fails with "disk_test.go:42: Unexpected FSType UNKNOWN"
subpackages="$pkgname-openrc"
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/minio
}
check() {
go test -tags kqueue ./...
}
package() {
install -Dm755 "$builddir"/bin/minio \
"$pkgdir"/usr/bin/minio
install -Dm755 "$srcdir"/"$pkgname".initd \
"$pkgdir"/etc/init.d/"$pkgname"
install -Dm644 "$srcdir"/"$pkgname".confd \
"$pkgdir"/etc/conf.d/"$pkgname"
}
cleanup_srcdir() {
go clean -modcache
default_cleanup_srcdir
}
sha512sums="1e48f298a28e400d378a08816b617a134357f52dd66bbf9ec5bc8467cf7202a917d9a162a95f40617feb191b13834fd92ab920b04b436d2df55a2cd4adc4b062 minio.initd
ed9790fbadfb38e4d660eb1befd87e803d70dec04d936e8cd26def4a9c21240bb7cae8750ae3395aa4761e6738b9e346c86ba57761cfde30efe46d2cb459a7e4 minio.confd
bba69ccfc6018affa26884f0d6f864ee069b3dddbf8cf92d1e4080e78493a4e2528feb5580e4c9de156432b59741a7936d1f6e2d456c913a5377238ab7c63a91 RELEASE.2019-06-13T01-41-13Z.tar.gz"
|