mirror of
https://github.com/TrentSPalmer/aur-packages.git
synced 2024-11-22 03:11:30 -08:00
add option to not install vim-lightline-git to /usr/share/nvim/*
because latest neovim seems to find plugins in /usr/share/vim/*
This commit is contained in:
parent
4ba0c1b632
commit
fa740e338a
@ -4,6 +4,15 @@
|
|||||||
# Forked from https://aur.archlinux.org/vim-lightline-git.git
|
# Forked from https://aur.archlinux.org/vim-lightline-git.git
|
||||||
# at commit 95ac7c5e2434144e5a40e4b71432bf9d61203cac
|
# at commit 95ac7c5e2434144e5a40e4b71432bf9d61203cac
|
||||||
|
|
||||||
|
###########################################################################################################
|
||||||
|
# Build Options
|
||||||
|
###########################################################################################################
|
||||||
|
_vim="y"
|
||||||
|
|
||||||
|
# if you have a newer version of neovim you may not need or want to set _neovim="y"
|
||||||
|
_neovim="n"
|
||||||
|
###########################################################################################################
|
||||||
|
|
||||||
_name='vim-lightline'
|
_name='vim-lightline'
|
||||||
pkgname="${_name}-git"
|
pkgname="${_name}-git"
|
||||||
pkgver=r526.555f202
|
pkgver=r526.555f202
|
||||||
@ -27,13 +36,17 @@ pkgver() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
if [ "$_neovim" = "y" ]; then
|
||||||
mkdir -p "$pkgdir/usr/share/nvim/runtime"
|
mkdir -p "$pkgdir/usr/share/nvim/runtime"
|
||||||
cp -r "${srcdir}/${_name}/"{autoload,doc,plugin} \
|
cp -r "${srcdir}/${_name}/"{autoload,doc,plugin} \
|
||||||
"$pkgdir/usr/share/nvim/runtime"
|
"$pkgdir/usr/share/nvim/runtime"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$_vim" = "y" ]; then
|
||||||
mkdir -p "$pkgdir/usr/share/vim/vimfiles"
|
mkdir -p "$pkgdir/usr/share/vim/vimfiles"
|
||||||
cp -r "${srcdir}/${_name}/"{autoload,doc,plugin} \
|
cp -r "${srcdir}/${_name}/"{autoload,doc,plugin} \
|
||||||
"$pkgdir/usr/share/vim/vimfiles"
|
"$pkgdir/usr/share/vim/vimfiles"
|
||||||
|
fi
|
||||||
|
|
||||||
install -D -m644 "${srcdir}/${_name}/README.md" $pkgdir/usr/share/doc/$pkgname/README.md
|
install -D -m644 "${srcdir}/${_name}/README.md" $pkgdir/usr/share/doc/$pkgname/README.md
|
||||||
install -D -m644 "${srcdir}/${_name}/LICENSE" $pkgdir/usr/share/licenses/$pkgname/LICENSE
|
install -D -m644 "${srcdir}/${_name}/LICENSE" $pkgdir/usr/share/licenses/$pkgname/LICENSE
|
||||||
|
Loading…
Reference in New Issue
Block a user