[arch-commits] Commit in minio-client/trunk (PKGBUILD)
Sven-Hendrik Haase
svenstaro at archlinux.org
Thu May 7 07:58:22 UTC 2020
Date: Thursday, May 7, 2020 @ 07:58:22
Author: svenstaro
Revision: 625314
upgpkg: minio-client 2020.05.06-1
Modified:
minio-client/trunk/PKGBUILD
----------+
PKGBUILD | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-05-07 07:58:12 UTC (rev 625313)
+++ PKGBUILD 2020-05-07 07:58:22 UTC (rev 625314)
@@ -2,10 +2,10 @@
# Contributor: Dhananjay Balan <mail at dbalan.in>
pkgname=minio-client
-pkgver=2019.12.17
-_timever=T23:26:28Z
+pkgver=2020.05.06
+_timever=T18:00:07Z
_pkgver="${pkgver//./-}${_timever//:/-}"
-pkgrel=2
+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'
@@ -17,18 +17,19 @@
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"
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export GOFLAGS="-trimpath"
+
+ cd 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)\"/g" cmd/build-constants.go
- GO111MODULE=on go build -ldflags "-extldflags $LDFLAGS"
+ go build .
}
package() {
- install -Dm755 go/src/github.com/minio/mc/mc "$pkgdir/usr/bin/mcli"
+ install -Dm755 mc/mc "$pkgdir/usr/bin/mcli"
}
# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list