summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: af70ad69530861d1a016e56142b71f9e94a499ce (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
# Maintainer: Daniel Maslowski <info@orangecms.org>

_gopkgname=minio
pkgname=$_gopkgname-git
pkgver=r3269.ec4260d
pkgrel=1
pkgdesc='Object storage server compatible with Amazon S3'
arch=('x86_64' 'i686')
url='https://minio.io'
license=('APACHE')
makedepends=('go')
depends=('glibc')
options=('!strip')
source=('git://github.com/minio/minio.git')
md5sums=('SKIP')

pkgver() {
  cd "$_gopkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  export GOPATH="$srcdir/go"
  mkdir -p "$GOPATH/src/github.com/minio"
  mv "$srcdir/minio" "$GOPATH/src/github.com/minio/"
  cd "$GOPATH/src/github.com/minio/minio"
  go build
}

package() {
  export GOPATH="$srcdir/go"
  cd "$GOPATH/src/github.com/minio/minio"
  install -Dm755 "$_gopkgname" "$pkgdir/usr/bin/$_gopkgname"
}
# vim:set ts=2 sw=2 et: