[arch-commits] Commit in golang-gopkg-yaml.v2/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Apr 28 08:15:13 UTC 2020


    Date: Tuesday, April 28, 2020 @ 08:15:12
  Author: felixonmars
Revision: 621969

archrelease: copy trunk to community-any

Added:
  golang-gopkg-yaml.v2/repos/community-any/
  golang-gopkg-yaml.v2/repos/community-any/PKGBUILD
    (from rev 621968, golang-gopkg-yaml.v2/trunk/PKGBUILD)

----------+
 PKGBUILD |   26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

Copied: golang-gopkg-yaml.v2/repos/community-any/PKGBUILD (from rev 621968, golang-gopkg-yaml.v2/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-04-28 08:15:12 UTC (rev 621969)
@@ -0,0 +1,26 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=golang-gopkg-yaml.v2
+pkgver=2.2.8
+pkgrel=1
+pkgdesc='YAML support for the Go language'
+arch=('any')
+url="https://github.com/go-yaml/yaml"
+license=('Apache')
+depends=('go-pie')
+checkdepends=('golang-gopkg-check.v1')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/go-yaml/yaml/archive/v$pkgver.tar.gz")
+sha512sums=('ba9f916a09998af14371060432b414bf4f92dac8b623fa72667e425784b54d8dd3f088aa4bdb0d4499b79de904d0d2b04f1ebce1320c94b4af349e17cd170699')
+
+check() {
+  export GOPATH="$srcdir/build:/usr/share/gocode"
+  mkdir -p "$srcdir"/build/src/github.com/stretchr
+  cp -a "$srcdir"/yaml-$pkgver "$srcdir"/build/src/github.com/stretchr/yaml
+  cd "$srcdir"/build/src/github.com/stretchr/yaml
+  go test -v $(go list ./...)
+}
+
+package() {
+  mkdir -p "$pkgdir"/usr/share/gocode/src/github.com/stretchr
+  cp -a "$srcdir"/yaml-$pkgver "$pkgdir"/usr/share/gocode/src/github.com/stretchr/yaml
+}



More information about the arch-commits mailing list