Date: Tuesday, May 7, 2019 @ 14:13:45
  Author: felixonmars
Revision: 462151

archrelease: copy trunk to community-any

Added:
  golang-golang-x-text/repos/community-any/PKGBUILD
    (from rev 462150, golang-golang-x-text/trunk/PKGBUILD)
Deleted:
  golang-golang-x-text/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   46 +++++++++++++++++++++++++++-------------------
 1 file changed, 27 insertions(+), 19 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2019-05-07 14:13:34 UTC (rev 462150)
+++ PKGBUILD    2019-05-07 14:13:45 UTC (rev 462151)
@@ -1,19 +0,0 @@
-# Maintainer: Felix Yan <felixonm...@archlinux.org>
-
-pkgname=golang-golang-x-text
-pkgver=0.3.0
-pkgrel=1
-pkgdesc='Go text processing support'
-arch=('any')
-url="https://github.com/golang/text";
-license=('BSD')
-depends=('go-pie' 'golang-golang-x-tools')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/golang/text/archive/v$pkgver.tar.gz";)
-sha512sums=('bd60dfaa7d9dbfca171a3ba40b51f5663c01257cf3b12b618d35689a97ab2212d316d5716ff09681bf40b099f7e20a0e0df8cfc065699cb6a07ad1dc2e2bc189')
-
-package() {
-  mkdir -p "$pkgdir"/usr/share/gocode/src/golang.org/x
-  cp -a "$srcdir"/text-$pkgver "$pkgdir"/usr/share/gocode/src/golang.org/x/text
-
-  install -Dm644 text-$pkgver/LICENSE 
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: golang-golang-x-text/repos/community-any/PKGBUILD (from rev 462150, 
golang-golang-x-text/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2019-05-07 14:13:45 UTC (rev 462151)
@@ -0,0 +1,27 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+pkgname=golang-golang-x-text
+pkgver=0.3.1
+pkgrel=1
+pkgdesc='Go text processing support'
+arch=('any')
+url="https://github.com/golang/text";
+license=('BSD')
+depends=('go-pie' 'golang-golang-x-tools')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/golang/text/archive/v$pkgver.tar.gz";)
+sha512sums=('a2cdd676e0d85ce14cd7561e7530cc1d052b4a4bbd850a78cb2bfae84d33f4140d00059bdd70a1791702ba9f9392494c506d2179e7dcebb5938ba980964c50a2')
+
+check() {
+  export GOPATH="$srcdir/build:/usr/share/gocode"
+  mkdir -p "$srcdir"/build/src/golang.org/x
+  cp -a "$srcdir"/text-$pkgver "$srcdir"/build/src/golang.org/x/text
+  cd "$srcdir"/build/src/golang.org/x/text
+  go test -v $(go list ./...)
+}
+
+package() {
+  mkdir -p "$pkgdir"/usr/share/gocode/src/golang.org/x
+  cp -a "$srcdir"/text-$pkgver "$pkgdir"/usr/share/gocode/src/golang.org/x/text
+
+  install -Dm644 text-$pkgver/LICENSE 
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Reply via email to