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

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


    Date: Monday, June 17, 2019 @ 23:51:16
  Author: svenstaro
Revision: 482052

upgpkg: minio 2019.06.15-2

Fix version display (Fixes FS#62774)

Modified:
  minio/trunk/PKGBUILD

----------+
 PKGBUILD |   25 ++++++++++++++-----------
 1 file changed, 14 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-06-17 23:46:57 UTC (rev 482051)
+++ PKGBUILD	2019-06-17 23:51:16 UTC (rev 482052)
@@ -4,8 +4,9 @@
 
 pkgname=minio
 pkgver=2019.06.15
-_pkgver="${pkgver//./-}T23-07-18Z"
-pkgrel=1
+_timever=T23:07:18Z
+_pkgver="${pkgver//./-}${_timever//:/-}"
+pkgrel=2
 pkgdesc='Object storage server compatible with Amazon S3'
 arch=('x86_64')
 url='https://minio.io'
@@ -13,12 +14,12 @@
 depends=('glibc')
 makedepends=('go-pie' 'git')
 options=('!strip')
-source=(https://github.com/minio/minio/archive/RELEASE.${_pkgver}.tar.gz
+source=(git+https://github.com/minio/minio.git#tag=RELEASE.${_pkgver}
         minio.conf
         minio.service
         minio.sysusers)
 backup=('etc/minio/minio.conf')
-sha512sums=('88b4ec5232e44f7f574a8576b74d878eaac2024679491c7fe44865f12b5b1b5a005f629bda6ebc1750c0700676ad077583628f5a5e83d511c93da4dacf31fa91'
+sha512sums=('SKIP'
             '630a5d109409074b67be71b663a43ad09104121cca3637bb0542df19e375023bff7d7e2cbf39e52cc3cd060d41c363a90bd4ff7734aed1a5ca43a600f6d6d275'
             '59aa13b47494564c8eea23dd48fdccef0e65adc0defd4bbd9ca039fd602de0791e1311e444bddca71a1bec7a58cb4eaafad09a8d9ae61eb1e534287dfdf610c2'
             '7e4617aed266cf48a2ff9b0e80e31641d998537c78d2c56ce97b828cfc77d96dbf64728d4235dac7382d6e5b201388bef6722959302de5e2298d93f4ec1e0e63')
@@ -26,8 +27,11 @@
 build() {
   export GOPATH="${srcdir}/go"
   mkdir -p "${GOPATH}/src/github.com/minio"
-  mv "${srcdir}/minio-RELEASE.${_pkgver}" "${GOPATH}/src/github.com/minio/minio"
+  mv "${srcdir}/minio" "${GOPATH}/src/github.com/minio/minio"
   cd "${GOPATH}/src/github.com/minio/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
 }
 
@@ -35,10 +39,9 @@
   install -dm750 -o 103 -g 103 "${pkgdir}/srv/minio"
   install -dm750 -o 103 -g 103 "${pkgdir}/var/lib/minio"
 
-  export GOPATH="${srcdir}/go"
-  cd "${GOPATH}/src/github.com/minio/minio"
-  install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
-  install -Dm644 "${srcdir}/minio.conf" "${pkgdir}/etc/minio/${pkgname}.conf"
-  install -Dm644 "${srcdir}/minio.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
-  install -Dm644 "${srcdir}/minio.sysusers" "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
+  cd "${srcdir}/go/src/github.com/minio/minio"
+  install -Dm755 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