[arch-commits] Commit in (5 files)

Sven-Hendrik Haase svenstaro at archlinux.org
Mon Jun 17 23:29:05 UTC 2019


    Date: Monday, June 17, 2019 @ 23:29:04
  Author: svenstaro
Revision: 482049

Move minio-client from AUR

Added:
  minio-client/
  minio-client/repos/
  minio-client/trunk/
  minio-client/trunk/PKGBUILD
  minio-client/trunk/minio-client.install

----------------------+
 PKGBUILD             |   34 ++++++++++++++++++++++++++++++++++
 minio-client.install |    3 +++
 2 files changed, 37 insertions(+)

Added: minio-client/trunk/PKGBUILD
===================================================================
--- minio-client/trunk/PKGBUILD	                        (rev 0)
+++ minio-client/trunk/PKGBUILD	2019-06-17 23:29:04 UTC (rev 482049)
@@ -0,0 +1,34 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: Dhananjay Balan <mail at dbalan.in>
+
+pkgname=minio-client
+pkgver=2019.06.12
+_timever=T20:35:20Z
+_pkgver="${pkgver//./-}${_timever//:/-}"
+pkgrel=1
+pkgdesc='Replacement for ls, cp, mkdir, diff and rsync commands for filesystems and object storage'
+arch=('x86_64')
+url='https://minio.io/downloads/#minio-client'
+license=('Apache')
+makedepends=('go-pie' 'git')
+depends=('glibc')
+install=minio-client.install
+source=(git+https://github.com/minio/mc.git#tag=RELEASE.${_pkgver})
+sha512sums=('SKIP')
+
+build() {
+  export GOPATH="$srcdir/go"
+  mkdir -p "$GOPATH/src/github.com/minio"
+  mv "$srcdir/mc" "$GOPATH/src/github.com/minio/mc/"
+  cd "$GOPATH/src/github.com/minio/mc"
+  sed -i "s/Version.*/Version = \"${pkgver//./-}${_timever}\"/g" cmd/build-constants.go
+  sed -i "s/ReleaseTag.*/ReleaseTag = \"RELEASE.${_pkgver}\"/g" cmd/build-constants.go
+  sed -i "s/CommitID.*/CommitID = \"$(git rev-parse HEAD | cut -c1-12)\"/g" cmd/build-constants.g
+
+  GO111MODULE=on go build
+}
+
+package() {
+  install -Dm755 go/github.com/minio/mc "$pkgdir/usr/bin/mcli"
+}
+# vim:set ts=2 sw=2 et:

Added: minio-client/trunk/minio-client.install
===================================================================
--- minio-client/trunk/minio-client.install	                        (rev 0)
+++ minio-client/trunk/minio-client.install	2019-06-17 23:29:04 UTC (rev 482049)
@@ -0,0 +1,3 @@
+pre_install() {
+    echo "NOTE: The binary is named mcli, suggested by https://github.com/minio/mc/blob/RELEASE.2018-01-18T21-18-56Z/CONFLICT.md"
+}


More information about the arch-commits mailing list