meson: link vim files to neovim's runtime dir.

Closes: #25054 [via git-merge-pr]
This commit is contained in:
Jony 2020-09-23 09:37:01 -07:00 committed by Érico Rolim
parent c522390e85
commit 1a9332c9aa

View file

@ -1,8 +1,7 @@
# Template file for 'meson'
pkgname=meson
version=0.55.3
revision=1
archs=noarch
revision=2
build_style=python3-module
hostmakedepends="python3-devel python3-setuptools"
depends="ninja python3-setuptools"
@ -28,6 +27,13 @@ post_install() {
vmkdir usr/share/vim/vimfiles
cp -rt ${DESTDIR}/usr/share/vim/vimfiles data/syntax-highlighting/vim/*/
for dir in ftdetect ftplugin indent syntax; do
nvim_runtime_dir="usr/share/nvim/runtime/$dir"
vmkdir $nvim_runtime_dir
ln -sf /usr/share/vim/vimfiles/$dir/meson.vim ${DESTDIR}/$nvim_runtime_dir
done
vinstall data/syntax-highlighting/emacs/meson.el 644 usr/share/emacs/site-lisp
vinstall data/shell-completions/zsh/_meson 644 usr/share/zsh/site-functions
}