[arch-commits] Commit in golang-github-client9-misspell/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Thu Sep 1 07:40:57 UTC 2022


    Date: Thursday, September 1, 2022 @ 07:40:57
  Author: felixonmars
Revision: 1289817

archrelease: copy trunk to community-any

Added:
  golang-github-client9-misspell/repos/community-any/
  golang-github-client9-misspell/repos/community-any/PKGBUILD
    (from rev 1289816, golang-github-client9-misspell/trunk/PKGBUILD)

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

Copied: golang-github-client9-misspell/repos/community-any/PKGBUILD (from rev 1289816, golang-github-client9-misspell/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2022-09-01 07:40:57 UTC (rev 1289817)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=golang-github-client9-misspell
+pkgver=0.3.4
+pkgrel=1
+pkgdesc="Package for equality of Go values"
+arch=('any')
+url="https://github.com/client9/misspell"
+license=('BSD')
+depends=('go' 'golang-github-gobwas-glob')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/client9/misspell/archive/v$pkgver.tar.gz"
+        $pkgname-remove-newline.patch::https://github.com/client9/misspell/pull/194.patch)
+sha512sums=('6dfbc4aef932f18b8908efe75b6464cf444522ef0625f4abc1e9d40c5bb31238699634494cb24a0d3869336304df695ac6143784f53ca9e0d2d441b2e08eebcb'
+            '3de10156cd9c8ffcaeee8786c80d495242685a9a36ac53c3c83bb7f16e6d8db5011c27d54e00c8677e40aef44a79348f7d2188c2eb2d3731e0113ccd41b78fb0')
+
+prepare() {
+  patch -d misspell-$pkgver -p1 < $pkgname-remove-newline.patch
+}
+
+check() {
+  export GO111MODULE=off
+  export GOPATH="$srcdir/build:/usr/share/gocode"
+  mkdir -p "$srcdir"/build/src/github.com/client9
+  cp -a "$srcdir"/misspell-$pkgver "$srcdir"/build/src/github.com/client9/misspell
+  cd "$srcdir"/build/src/github.com/client9/misspell
+  go test -v $(go list ./...)
+}
+
+package() {
+  mkdir -p "$pkgdir"/usr/share/gocode/src/github.com/client9
+  cp -a "$srcdir"/misspell-$pkgver "$pkgdir"/usr/share/gocode/src/github.com/client9/misspell
+
+  install -Dm644 misspell-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list