[arch-commits] Commit in minio/trunk (PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Thu May 7 07:58:05 UTC 2020


    Date: Thursday, May 7, 2020 @ 07:58:04
  Author: svenstaro
Revision: 625312

upgpkg: minio 2020.05.06-1

Modified:
  minio/trunk/PKGBUILD

----------+
 PKGBUILD |   19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-07 07:26:48 UTC (rev 625311)
+++ PKGBUILD	2020-05-07 07:58:04 UTC (rev 625312)
@@ -3,8 +3,8 @@
 # Contributor: Daniel Maslowski <info at orangecms.org>
 
 pkgname=minio
-pkgver=2020.03.06
-_timever=T22:23:56Z
+pkgver=2020.05.06
+_timever=T23:23:25Z
 _pkgver="${pkgver//./-}${_timever//:/-}"
 pkgrel=1
 pkgdesc='Object storage server compatible with Amazon S3'
@@ -25,14 +25,16 @@
             '7e4617aed266cf48a2ff9b0e80e31641d998537c78d2c56ce97b828cfc77d96dbf64728d4235dac7382d6e5b201388bef6722959302de5e2298d93f4ec1e0e63')
 
 build() {
-  export GOPATH="${srcdir}/go"
-  mkdir -p "${GOPATH}/src/github.com/minio"
-  mv "${srcdir}/minio" "${GOPATH}/src/github.com/minio/minio"
-  cd "${GOPATH}/src/github.com/minio/minio"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export GOFLAGS="-trimpath"
+
+  cd minio
+
   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() {
@@ -39,8 +41,7 @@
   install -dm750 -o 103 -g 103 "${pkgdir}/srv/minio"
   install -dm750 -o 103 -g 103 "${pkgdir}/var/lib/minio"
 
-  cd "${srcdir}/go/src/github.com/minio/minio"
-  install -Dm755 minio "${pkgdir}/usr/bin/minio"
+  install -Dm755 minio/minio "${pkgdir}/usr/bin/minio"
   install -Dm644 "${srcdir}/minio.conf" "${pkgdir}/etc/minio/minio.conf"
   install -Dm644 "${srcdir}/minio.service" "${pkgdir}/usr/lib/systemd/system/minio.service"
   install -Dm644 "${srcdir}/minio.sysusers" "${pkgdir}/usr/lib/sysusers.d/minio.conf"


More information about the arch-commits mailing list