From d3bedd6288d24f5e8163bc2745367843c16babde Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Mon, 4 Apr 2022 18:32:50 +0300 Subject: efm-langserver: adopted --- efm-langserver/.SRCINFO | 14 ++++++++++++++ efm-langserver/PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 efm-langserver/.SRCINFO create mode 100644 efm-langserver/PKGBUILD (limited to 'efm-langserver') 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 @@ +pkgbase = efm-langserver + pkgdesc = General purpose Language Server + pkgver = 0.0.42 + pkgrel = 1 + url = https://github.com/mattn/efm-langserver + arch = x86_64 + license = MIT + makedepends = go + depends = glibc + optdepends = ctags: for "go to definition" requests + source = https://github.com/mattn/efm-langserver/archive/v0.0.42/efm-langserver-v0.0.42.tar.gz + sha256sums = 44ef0d86c7a1e9d64f205cbcb69ce242b6ca94d933963ef512747a6d03a553a3 + +pkgname = 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 @@ +# Maintainer: Yigit Sever +# Contributor: Daniel M. Capella +# Contributor: dianlujitao + +pkgname=efm-langserver +pkgver=0.0.42 +pkgrel=1 +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") +sha256sums=('44ef0d86c7a1e9d64f205cbcb69ce242b6ca94d933963ef512747a6d03a553a3') + +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 +} -- cgit v1.2.3-70-g09d2