[arch-commits] Commit in golang-github-kr-pretty/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri Feb 22 18:13:50 UTC 2019


    Date: Friday, February 22, 2019 @ 18:13:48
  Author: felixonmars
Revision: 435270

archrelease: copy trunk to community-any

Added:
  golang-github-kr-pretty/repos/community-any/
  golang-github-kr-pretty/repos/community-any/PKGBUILD
    (from rev 435269, golang-github-kr-pretty/trunk/PKGBUILD)

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

Copied: golang-github-kr-pretty/repos/community-any/PKGBUILD (from rev 435269, golang-github-kr-pretty/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2019-02-22 18:13:48 UTC (rev 435270)
@@ -0,0 +1,26 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=golang-github-kr-pretty
+pkgver=0.1.0
+pkgrel=1
+pkgdesc='Pretty printing for Go values'
+arch=('any')
+url="https://github.com/kr/pretty"
+license=('MIT')
+depends=('go-pie' 'golang-github-kr-text')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/kr/pretty/archive/v$pkgver.tar.gz")
+sha512sums=('7a367c317043d40cfbf7fac631a286c0bbb8b45a716fe7388d6271431e354b3913505398b8ccf7ffbb01abf71f04216738936a4282c3c9645e26c51b7692e820')
+
+check() {
+  export GOPATH="$srcdir/build:/usr/share/gocode"
+  mkdir -p "$srcdir"/build/src/github.com/kr
+  cp -a "$srcdir"/pretty-$pkgver "$srcdir"/build/src/github.com/kr/pretty
+  go test -v ./pretty-$pkgver
+}
+
+package() {
+  mkdir -p "$pkgdir"/usr/share/gocode/src/github.com/kr
+  cp -a "$srcdir"/pretty-$pkgver "$pkgdir"/usr/share/gocode/src/github.com/kr/pretty
+
+  install -Dm644 pretty-$pkgver/License "$pkgdir"/usr/share/licenses/$pkgname/License
+}



More information about the arch-commits mailing list