[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at gemini.archlinux.org
Thu Sep 1 09:02:26 UTC 2022
Date: Thursday, September 1, 2022 @ 09:02:26
Author: felixonmars
Revision: 1289834
addpkg: golang-github-neelance-sourcemap 0.0.20200213-1
Added:
golang-github-neelance-sourcemap/
golang-github-neelance-sourcemap/repos/
golang-github-neelance-sourcemap/trunk/
golang-github-neelance-sourcemap/trunk/PKGBUILD
----------+
PKGBUILD | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
Added: golang-github-neelance-sourcemap/trunk/PKGBUILD
===================================================================
--- golang-github-neelance-sourcemap/trunk/PKGBUILD (rev 0)
+++ golang-github-neelance-sourcemap/trunk/PKGBUILD 2022-09-01 09:02:26 UTC (rev 1289834)
@@ -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