[arch-commits] Commit in golang-github-stretchr-objx/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri Aug 23 06:11:32 UTC 2019


    Date: Friday, August 23, 2019 @ 06:11:31
  Author: felixonmars
Revision: 500973

upgpkg: golang-github-stretchr-objx 0.2.0-1

Modified:
  golang-github-stretchr-objx/trunk/PKGBUILD

----------+
 PKGBUILD |   13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-23 06:09:54 UTC (rev 500972)
+++ PKGBUILD	2019-08-23 06:11:31 UTC (rev 500973)
@@ -1,8 +1,7 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 pkgname=golang-github-stretchr-objx
-pkgver=0.1.1.20190212
-_commit=c61a9dfcced1815e7d40e214d00d1a8669a9f58c
+pkgver=0.2.0
 pkgrel=1
 pkgdesc='Go package for dealing with maps, slices, JSON and other data.'
 arch=('any')
@@ -9,13 +8,13 @@
 url="https://github.com/stretchr/objx"
 license=('MIT')
 depends=('go-pie')
-source=("$pkgname-$_commit.tar.gz::https://github.com/stretchr/objx/archive/$_commit.tar.gz")
-sha512sums=('cab0b4e28c82a9dc0a59abb0c33124b84b6069c73e9bf456abfd27f8584054a93ec7374fab48b7dabe94c6792f1a0fd6d1b70d7c15e8962fedc40cb878dff445')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/stretchr/objx/archive/v$pkgver.tar.gz")
+sha512sums=('d2b9b907c33b52e6ae5ef58280b3e8b2aa03bb7fe055275850cbe95ed4c62663867abe6ad7a5790ee10ecfab9c0cc7cbcefea1d3971454c02fb198c792402b36')
 
 check() {
   export GOPATH="$srcdir/build:/usr/share/gocode"
   mkdir -p "$srcdir"/build/src/github.com/stretchr
-  cp -a "$srcdir"/objx-$_commit "$srcdir"/build/src/github.com/stretchr/objx
+  cp -a "$srcdir"/objx-$pkgver "$srcdir"/build/src/github.com/stretchr/objx
   cd "$srcdir"/build/src/github.com/stretchr/objx
   go test -v $(go list ./...)
 }
@@ -22,7 +21,7 @@
 
 package() {
   mkdir -p "$pkgdir"/usr/share/gocode/src/github.com/stretchr
-  cp -a "$srcdir"/objx-$_commit "$pkgdir"/usr/share/gocode/src/github.com/stretchr/objx
+  cp -a "$srcdir"/objx-$pkgver "$pkgdir"/usr/share/gocode/src/github.com/stretchr/objx
 
-  install -Dm644 objx-$_commit/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  install -Dm644 objx-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }



More information about the arch-commits mailing list