[arch-commits] Commit in golang-github-alecthomas-template/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri Feb 22 20:08:55 UTC 2019


    Date: Friday, February 22, 2019 @ 20:08:48
  Author: felixonmars
Revision: 435322

archrelease: copy trunk to community-any

Added:
  golang-github-alecthomas-template/repos/community-any/
  golang-github-alecthomas-template/repos/community-any/PKGBUILD
    (from rev 435321, golang-github-alecthomas-template/trunk/PKGBUILD)

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

Copied: golang-github-alecthomas-template/repos/community-any/PKGBUILD (from rev 435321, golang-github-alecthomas-template/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2019-02-22 20:08:48 UTC (rev 435322)
@@ -0,0 +1,28 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=golang-github-alecthomas-template
+pkgver=0.0.20160405
+_commit=a0175ee3bccc567396460bf5acd36800cb10c49c
+pkgrel=1
+pkgdesc="Fork of Go's text/template adding newline elision"
+arch=('any')
+url="https://github.com/alecthomas/template"
+license=('BSD')
+depends=('go-pie')
+source=("$pkgname-$_commit.tar.gz::https://github.com/alecthomas/template/archive/$_commit.tar.gz")
+sha512sums=('5ca546170725c3bdd4d9b27ca3976d6dc6376be8db685e6e26cfaef4a51560f78702b7babbe5ed0b2d934d0c32867bc69b11ae757071dc143a4453e6e7ffabdf')
+
+check() {
+  export GOPATH="$srcdir/build:/usr/share/gocode"
+  mkdir -p "$srcdir"/build/src/github.com/alecthomas
+  cp -a "$srcdir"/template-$_commit "$srcdir"/build/src/github.com/alecthomas/template
+  cd "$srcdir"/build/src/github.com/alecthomas/template
+  go test -v $(go list ./... | grep -v vendor)
+}
+
+package() {
+  mkdir -p "$pkgdir"/usr/share/gocode/src/github.com/alecthomas
+  cp -a "$srcdir"/template-$_commit "$pkgdir"/usr/share/gocode/src/github.com/alecthomas/template
+
+  install -Dm644 template-$_commit/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list