[arch-commits] Commit in efm-langserver/repos (2 files)

Daniel M. Capella polyzen at archlinux.org
Fri Nov 6 21:24:19 UTC 2020


    Date: Friday, November 6, 2020 @ 21:24:18
  Author: polyzen
Revision: 744606

archrelease: copy trunk to community-x86_64

Added:
  efm-langserver/repos/community-x86_64/
  efm-langserver/repos/community-x86_64/PKGBUILD
    (from rev 744605, efm-langserver/trunk/PKGBUILD)

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

Copied: efm-langserver/repos/community-x86_64/PKGBUILD (from rev 744605, efm-langserver/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2020-11-06 21:24:18 UTC (rev 744606)
@@ -0,0 +1,36 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: dianlujitao <dianlujitao at gmail dot com>
+
+pkgname=efm-langserver
+pkgver=0.0.22
+pkgrel=2
+pkgdesc='General purpose Language Server'
+arch=('x86_64')
+url=https://github.com/mattn/efm-langserver
+license=('MIT')
+depends=('glibc')
+makedepends=('go')
+optdepends=('ctags: for "go to definition" requests')
+source=("$url/archive/v$pkgver/$pkgname-v$pkgver.tar.gz")
+b2sums=('5f29002c3fd80a759102201fac9e973dfe134cab53c96ace10b8a6d06dd690141b0f2e867174a634492c3c5eb87c2f389393a13ced4cb87d1c3781b58b946740')
+
+build() {
+  cd $pkgname-$pkgver
+  export CGO_CPPFLAGS="$CPPFLAGS"
+  export CGO_CFLAGS="$CFLAGS"
+  export CGO_CXXFLAGS="$CXXFLAGS"
+  export CGO_LDFLAGS="$LDFLAGS"
+  export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
+  go build .
+}
+
+check() {
+  cd $pkgname-$pkgver
+  go test -v ./...
+}
+
+package() {
+  cd $pkgname-$pkgver
+  install -Dt "$pkgdir"/usr/bin efm-langserver
+  install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname README.md # Only mention of license
+}



More information about the arch-commits mailing list