[arch-commits] Commit in golang-github-neelance-astrewrite/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Thu Sep 1 08:41:49 UTC 2022


    Date: Thursday, September 1, 2022 @ 08:41:49
  Author: felixonmars
Revision: 1289833

archrelease: copy trunk to community-any

Added:
  golang-github-neelance-astrewrite/repos/community-any/
  golang-github-neelance-astrewrite/repos/community-any/PKGBUILD
    (from rev 1289832, golang-github-neelance-astrewrite/trunk/PKGBUILD)

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

Copied: golang-github-neelance-astrewrite/repos/community-any/PKGBUILD (from rev 1289832, golang-github-neelance-astrewrite/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2022-09-01 08:41:49 UTC (rev 1289833)
@@ -0,0 +1,29 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=golang-github-neelance-astrewrite
+pkgver=0.0.20160511
+_commit=99348263ae862cc230986ce88deaddbf7edcc034
+pkgrel=1
+pkgdesc="astrewrite module for Go"
+arch=('any')
+url="https://github.com/neelance/astrewrite"
+license=('BSD')
+depends=('go')
+source=("$pkgname-$_commit.tar.gz::https://github.com/neelance/astrewrite/archive/$_commit.tar.gz")
+sha512sums=('769665373a1a4168ab5672ddba56dfb0069c04c1868c384e92aed96e66b70708cd6ef1d3fffadc4e07b8c742b49f62f1ea0812c7fe405c9d857ef2af21cff099')
+
+check() {
+  export GO111MODULE=off
+  export GOPATH="$srcdir/build:/usr/share/gocode"
+  mkdir -p "$srcdir"/build/src/github.com/neelance
+  cp -a "$srcdir"/astrewrite-$_commit "$srcdir"/build/src/github.com/neelance/astrewrite
+  cd "$srcdir"/build/src/github.com/neelance/astrewrite
+  go test -v $(go list ./...)
+}
+
+package() {
+  mkdir -p "$pkgdir"/usr/share/gocode/src/github.com/neelance
+  cp -a "$srcdir"/astrewrite-$_commit "$pkgdir"/usr/share/gocode/src/github.com/neelance/astrewrite
+
+  install -Dm644 astrewrite-$_commit/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list