diff options
author | Yigit Sever | 2023-07-25 15:38:23 +0300 |
---|---|---|
committer | Yigit Sever | 2023-07-25 15:38:23 +0300 |
commit | 3e4a912965426968771eccdc82e6ef5851484643 (patch) | |
tree | ecdf66012ac18b762901ef4e8deb3adc9c598b2c /efm-langserver | |
parent | e1c0fad494c760397b8d82d8784e8e0e3663f988 (diff) | |
parent | 2db3d82e9502cdc4378e932ba6d4b0c14d5a690a (diff) | |
download | packages-3e4a912965426968771eccdc82e6ef5851484643.tar.gz packages-3e4a912965426968771eccdc82e6ef5851484643.tar.bz2 packages-3e4a912965426968771eccdc82e6ef5851484643.zip |
Add 'efm-langserver/' from commit '2db3d82e9502cdc4378e932ba6d4b0c14d5a690a'
git-subtree-dir: efm-langserver
git-subtree-mainline: e1c0fad494c760397b8d82d8784e8e0e3663f988
git-subtree-split: 2db3d82e9502cdc4378e932ba6d4b0c14d5a690a
Diffstat (limited to 'efm-langserver')
-rw-r--r-- | efm-langserver/.SRCINFO | 14 | ||||
-rw-r--r-- | efm-langserver/PKGBUILD | 36 |
2 files changed, 50 insertions, 0 deletions
diff --git a/efm-langserver/.SRCINFO b/efm-langserver/.SRCINFO new file mode 100644 index 0000000..1b656da --- /dev/null +++ b/efm-langserver/.SRCINFO | |||
@@ -0,0 +1,14 @@ | |||
1 | pkgbase = efm-langserver | ||
2 | pkgdesc = General purpose Language Server | ||
3 | pkgver = 0.0.44 | ||
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.44/efm-langserver-v0.0.44.tar.gz | ||
12 | sha256sums = 825aef5815fb6eff656370e9f01fc31f91e5b2ab9d2b1f080881839676020dac | ||
13 | |||
14 | pkgname = efm-langserver | ||
diff --git a/efm-langserver/PKGBUILD b/efm-langserver/PKGBUILD new file mode 100644 index 0000000..68896d6 --- /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 | |||
5 | pkgname=efm-langserver | ||
6 | pkgver=0.0.44 | ||
7 | pkgrel=1 | ||
8 | pkgdesc='General purpose Language Server' | ||
9 | arch=('x86_64') | ||
10 | url=https://github.com/mattn/efm-langserver | ||
11 | license=('MIT') | ||
12 | depends=('glibc') | ||
13 | makedepends=('go') | ||
14 | optdepends=('ctags: for "go to definition" requests') | ||
15 | source=("$url/archive/v$pkgver/$pkgname-v$pkgver.tar.gz") | ||
16 | sha256sums=('825aef5815fb6eff656370e9f01fc31f91e5b2ab9d2b1f080881839676020dac') | ||
17 | |||
18 | build() { | ||
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 | |||
28 | check() { | ||
29 | cd $pkgname-$pkgver | ||
30 | go test -v ./... | ||
31 | } | ||
32 | |||
33 | package() { | ||
34 | cd $pkgname-$pkgver | ||
35 | install -Dt "$pkgdir"/usr/bin efm-langserver | ||
36 | } | ||