[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at archlinux.org
Fri Feb 22 18:55:09 UTC 2019
Date: Friday, February 22, 2019 @ 18:55:07
Author: felixonmars
Revision: 435286
addpkg: golang-github-davecgh-go-spew 1.1.1-1
Added:
golang-github-davecgh-go-spew/
golang-github-davecgh-go-spew/repos/
golang-github-davecgh-go-spew/trunk/
golang-github-davecgh-go-spew/trunk/PKGBUILD
----------+
PKGBUILD | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
Added: golang-github-davecgh-go-spew/trunk/PKGBUILD
===================================================================
--- golang-github-davecgh-go-spew/trunk/PKGBUILD (rev 0)
+++ golang-github-davecgh-go-spew/trunk/PKGBUILD 2019-02-22 18:55:07 UTC (rev 435286)
@@ -0,0 +1,26 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=golang-github-davecgh-go-spew
+pkgver=1.1.1
+pkgrel=1
+pkgdesc='Implements a deep pretty printer for Go data structures to aid in debugging'
+arch=('any')
+url="https://github.com/davecgh/go-spew"
+license=('ISC')
+depends=('go-pie')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/davecgh/go-spew/archive/v$pkgver.tar.gz")
+sha512sums=('b00621d2f11c4cc858e69fda3e6975f910deb375c4f2305a45b230e2d9be73f183db5d2ce4f5e30a14b27e11e79380233ee68fceeef0d855c64fca966e68111e')
+
+check() {
+ export GOPATH="$srcdir/build:/usr/share/gocode"
+ mkdir -p "$srcdir"/build/src/github.com/davecgh
+ cp -a "$srcdir"/go-spew-$pkgver "$srcdir"/build/src/github.com/davecgh/go-spew
+ go test -v github.com/davecgh/go-spew/spew
+}
+
+package() {
+ mkdir -p "$pkgdir"/usr/share/gocode/src/github.com/davecgh
+ cp -a "$srcdir"/go-spew-$pkgver "$pkgdir"/usr/share/gocode/src/github.com/davecgh/go-spew
+
+ install -Dm644 go-spew-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list