add vim-lsc start with version 0.3.2 tested on raspberrypi

This commit is contained in:
Trent Palmer 2019-05-23 18:34:50 -07:00
parent f164c9624d
commit 69b6952cfd
3 changed files with 105 additions and 0 deletions

18
vim-lsc/.SRCINFO Normal file
View File

@ -0,0 +1,18 @@
pkgbase = vim-lsc
pkgdesc = A vim plugin for communicating with a language server
pkgver = 0.3.2
pkgrel = 1
url = https://github.com/natebosch/vim-lsc
install = vim-lsc.install
arch = any
license = BSD 3-Clause
depends = vim
optdepends = vim: vim support
optdepends = neovim: neovim support
provides = vim-lsc
conflicts = vim-lsc-git
source = vim-lsc-0.3.2.tar.gz::https://github.com/natebosch/vim-lsc/archive/v0.3.2.tar.gz
sha256sums = 5264bf3d0e9836f6a15eb16ce8fcb3d940834b0ce9ac688325caf13aabf1e883
pkgname = vim-lsc

52
vim-lsc/PKGBUILD Normal file
View File

@ -0,0 +1,52 @@
# Maintainer: Trent Palmer trenttdually at gmail
###########################################################################################################
# Build Options
###########################################################################################################
_vim="y"
# neovim can load plugins installed as vim plugins
_neovim="n"
###########################################################################################################
_name='vim-lsc'
pkgname="${_name}"
pkgver=0.3.2
pkgrel=1
pkgdesc="A vim plugin for communicating with a language server"
arch=('any')
url="https://github.com/natebosch/vim-lsc"
license=('BSD 3-Clause')
groups=()
depends=('vim')
optdepends=('vim: vim support'
'neovim: neovim support')
makedepends=('')
provides=('vim-lsc')
conflicts=('vim-lsc-git')
replaces=('')
backup=()
options=()
install="${_name}.install"
source=("$_name-$pkgver.tar.gz::${url}/archive/v${pkgver}.tar.gz")
noextract=()
sha256sums=('5264bf3d0e9836f6a15eb16ce8fcb3d940834b0ce9ac688325caf13aabf1e883')
package() {
if [ "$_neovim" = "y" ]; then
mkdir -p "${pkgdir}/usr/share/nvim/runtime"
cp -r "${srcdir}/${_name}-${pkgver}/"{after,autoload,doc,plugin} \
"${pkgdir}/usr/share/nvim/runtime"
fi
if [ "$_vim" = "y" ]; then
mkdir -p "${pkgdir}/usr/share/vim/vimfiles"
cp -r "${srcdir}/${_name}-${pkgver}/"{after,autoload,doc,plugin} \
"${pkgdir}/usr/share/vim/vimfiles"
fi
install -D -m644 "${srcdir}/${_name}-${pkgver}/README.md" $pkgdir/usr/share/doc/$pkgname/README.md
install -D -m644 "${srcdir}/${_name}-${pkgver}/LICENSE" $pkgdir/usr/share/licenses/$pkgname/LICENSE
install -D -m644 "${srcdir}/${_name}-${pkgver}/CHANGELOG.md" $pkgdir/usr/share/licenses/$pkgname/CHANGELOG.md
install -D -m644 "${srcdir}/${_name}-${pkgver}/AUTHORS" $pkgdir/usr/share/licenses/$pkgname/AUTHORS
}

35
vim-lsc/vim-lsc.install Normal file
View File

@ -0,0 +1,35 @@
post_install() {
echo ""
echo " you might need to add the following to your init.vim/vimrc:
\"let g:lsc_server_commands = {'dart': 'dart_language_server'}\""
echo ""
echo " because syntastic doesn't work well with dart,
you might need to also add the following to your init.vim/vimrc:
\"let g:loaded_syntastic_dart_dartanalyzer_checker = 0\""
echo ""
}
post_upgrade() {
echo ""
echo " you might need to add the following to your init.vim/vimrc:
\"let g:lsc_server_commands = {'dart': 'dart_language_server'}\""
echo ""
echo " because syntastic doesn't work well with dart,
you might need to also add the following to your init.vim/vimrc:
\"let g:loaded_syntastic_dart_dartanalyzer_checker = 0\""
echo ""
}
post_remove() {
echo ""
echo " you may have added the following to your init.vim/vimrc:
\"let g:lsc_server_commands = {'dart': 'dart_language_server'}\""
echo ""
echo " because syntastic doesn't work well with dart,
you may have also added the following to your init.vim/vimrc:
\"let g:loaded_syntastic_dart_dartanalyzer_checker = 0\""
echo ""
}