summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYigit Sever2022-04-04 18:32:50 +0300
committerYigit Sever2022-04-04 18:32:50 +0300
commitd3bedd6288d24f5e8163bc2745367843c16babde (patch)
tree7ae933123f85d4e66d8bf65e3387e53e01c349e5
parent13ddf07c086e6eddf79e6fbdc6c8700897b74e9d (diff)
downloadpackages-d3bedd6288d24f5e8163bc2745367843c16babde.tar.gz
packages-d3bedd6288d24f5e8163bc2745367843c16babde.tar.bz2
packages-d3bedd6288d24f5e8163bc2745367843c16babde.zip
efm-langserver: adopted
-rw-r--r--efm-langserver/.SRCINFO14
-rw-r--r--efm-langserver/PKGBUILD36
2 files changed, 50 insertions, 0 deletions
diff --git a/efm-langserver/.SRCINFO b/efm-langserver/.SRCINFO
new file mode 100644
index 0000000..c6179d6
--- /dev/null
+++ b/efm-langserver/.SRCINFO
@@ -0,0 +1,14 @@
1pkgbase = efm-langserver
2 pkgdesc = General purpose Language Server
3 pkgver = 0.0.42
4 pkgrel = 1
5 url = https://github.com/mattn/efm-langserver
6 arch = x86_64
7 license = MIT
8 makedepends = go
9 depends = glibc
10 optdepends = ctags: for "go to definition" requests
11 source = https://github.com/mattn/efm-langserver/archive/v0.0.42/efm-langserver-v0.0.42.tar.gz
12 sha256sums = 44ef0d86c7a1e9d64f205cbcb69ce242b6ca94d933963ef512747a6d03a553a3
13
14pkgname = efm-langserver
diff --git a/efm-langserver/PKGBUILD b/efm-langserver/PKGBUILD
new file mode 100644
index 0000000..4bdc1ca
--- /dev/null
+++ b/efm-langserver/PKGBUILD
@@ -0,0 +1,36 @@
1# Maintainer: Yigit Sever <yigit at yigitsever dot com>
2# Contributor: Daniel M. Capella <polyzen@archlinux.org>
3# Contributor: dianlujitao <dianlujitao at gmail dot com>
4
5pkgname=efm-langserver
6pkgver=0.0.42
7pkgrel=1
8pkgdesc='General purpose Language Server'
9arch=('x86_64')
10url=https://github.com/mattn/efm-langserver
11license=('MIT')
12depends=('glibc')
13makedepends=('go')
14optdepends=('ctags: for "go to definition" requests')
15source=("$url/archive/v$pkgver/$pkgname-v$pkgver.tar.gz")
16sha256sums=('44ef0d86c7a1e9d64f205cbcb69ce242b6ca94d933963ef512747a6d03a553a3')
17
18build() {
19 cd $pkgname-$pkgver
20 export CGO_CPPFLAGS="$CPPFLAGS"
21 export CGO_CFLAGS="$CFLAGS"
22 export CGO_CXXFLAGS="$CXXFLAGS"
23 export CGO_LDFLAGS="$LDFLAGS"
24 export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
25 go build .
26}
27
28check() {
29 cd $pkgname-$pkgver
30 go test -v ./...
31}
32
33package() {
34 cd $pkgname-$pkgver
35 install -Dt "$pkgdir"/usr/bin efm-langserver
36}