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

Felix Yan felixonmars at gemini.archlinux.org
Thu Sep 1 09:02:46 UTC 2022


    Date: Thursday, September 1, 2022 @ 09:02:45
  Author: felixonmars
Revision: 1289835

archrelease: copy trunk to community-any

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

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

Copied: golang-github-neelance-sourcemap/repos/community-any/PKGBUILD (from rev 1289834, golang-github-neelance-sourcemap/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2022-09-01 09:02:45 UTC (rev 1289835)
@@ -0,0 +1,29 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=golang-github-neelance-sourcemap
+pkgver=0.0.20200213
+_commit=2833bce08e4c77c3e07af9cc765b046ccb259671
+pkgrel=1
+pkgdesc="JavaScript source map reader & writer for Go"
+arch=('any')
+url="https://github.com/neelance/sourcemap"
+license=('BSD')
+depends=('go')
+source=("$pkgname-$_commit.tar.gz::https://github.com/neelance/sourcemap/archive/$_commit.tar.gz")
+sha512sums=('5e1664fe852c5e1ee35e9189e00cc992e69dafa7c7a1b1bf894e73c2fc509209a1789da3c062bfa60ce940655a1b3f5bb150ec4ad7a05c33a735039fcdd7259b')
+
+check() {
+  export GO111MODULE=off
+  export GOPATH="$srcdir/build:/usr/share/gocode"
+  mkdir -p "$srcdir"/build/src/github.com/neelance
+  cp -a "$srcdir"/sourcemap-$_commit "$srcdir"/build/src/github.com/neelance/sourcemap
+  cd "$srcdir"/build/src/github.com/neelance/sourcemap
+  go test -v $(go list ./...)
+}
+
+package() {
+  mkdir -p "$pkgdir"/usr/share/gocode/src/github.com/neelance
+  cp -a "$srcdir"/sourcemap-$_commit "$pkgdir"/usr/share/gocode/src/github.com/neelance/sourcemap
+
+  install -Dm644 sourcemap-$_commit/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list