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

Felix Yan felixonmars at archlinux.org
Fri Feb 22 17:53:16 UTC 2019


    Date: Friday, February 22, 2019 @ 17:53:15
  Author: felixonmars
Revision: 435256

archrelease: copy trunk to community-any

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

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

Copied: golang-github-kr-text/repos/community-any/PKGBUILD (from rev 435255, golang-github-kr-text/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2019-02-22 17:53:15 UTC (rev 435256)
@@ -0,0 +1,23 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=golang-github-kr-text
+pkgver=0.1.0
+pkgrel=1
+pkgdesc='Miscellaneous functions for formatting text'
+arch=('any')
+url="https://github.com/kr/text"
+license=('MIT')
+depends=('go-pie' 'golang-github-kr-pty')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/kr/text/archive/v$pkgver.tar.gz")
+sha512sums=('bac4ad4e21c16838f79aeacf7c71d706794ae2921dfd4817f10583ae4ba650279be69996524a77b555ad3858170118682bbe1fd643a60201e59805afd1ee551e')
+
+check() {
+  go test -v ./text-$pkgver
+}
+
+package() {
+  mkdir -p "$pkgdir"/usr/share/gocode/src/github.com/kr
+  cp -a "$srcdir"/text-$pkgver "$pkgdir"/usr/share/gocode/src/github.com/kr/text
+
+  install -Dm644 text-$pkgver/License "$pkgdir"/usr/share/licenses/$pkgname/License
+}



More information about the arch-commits mailing list