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/PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 efm-langserver/PKGBUILD (limited to 'efm-langserver/PKGBUILD') 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