[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at archlinux.org
Tue Apr 28 08:15:03 UTC 2020
Date: Tuesday, April 28, 2020 @ 08:15:02
Author: felixonmars
Revision: 621968
addpkg: golang-gopkg-yaml.v2 2.2.8-1 (as dependency of golang-github-stretchr-testify)
Added:
golang-gopkg-yaml.v2/
golang-gopkg-yaml.v2/repos/
golang-gopkg-yaml.v2/trunk/
golang-gopkg-yaml.v2/trunk/PKGBUILD
----------+
PKGBUILD | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
Added: golang-gopkg-yaml.v2/trunk/PKGBUILD
===================================================================
--- golang-gopkg-yaml.v2/trunk/PKGBUILD (rev 0)
+++ golang-gopkg-yaml.v2/trunk/PKGBUILD 2020-04-28 08:15:02 UTC (rev 621968)
@@ -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