mirror of
https://github.com/TrentSPalmer/aur-packages.git
synced 2024-10-31 12:18:46 -07:00
add option to not install vimscripts-autoclose to /usr/share/nvim/*
because latest neovim seems to find plugins in /usr/share/vim/*
This commit is contained in:
parent
d09c1fed4b
commit
4ba0c1b632
@ -1,7 +1,7 @@
|
|||||||
pkgbase = vimscripts-autoclose
|
pkgbase = vimscripts-autoclose
|
||||||
pkgdesc = plugin that automatically closes quote, parentheses, brackets, braces, etc
|
pkgdesc = plugin that automatically closes quote, parentheses, brackets, braces, etc
|
||||||
pkgver = 1.2
|
pkgver = 1.2
|
||||||
pkgrel = 1
|
pkgrel = 2
|
||||||
url = https://github.com/vim-scripts/AutoClose
|
url = https://github.com/vim-scripts/AutoClose
|
||||||
arch = any
|
arch = any
|
||||||
license = unknown
|
license = unknown
|
||||||
|
@ -1,9 +1,18 @@
|
|||||||
# Maintainer: Trent Palmer trenttdually at gmail
|
# Maintainer: Trent Palmer trenttdually at gmail
|
||||||
|
|
||||||
|
###########################################################################################################
|
||||||
|
# Build Options
|
||||||
|
###########################################################################################################
|
||||||
|
_vim="y"
|
||||||
|
|
||||||
|
# if you have a newer version of neovim you may not need or want to set _neovim="y"
|
||||||
|
_neovim="n"
|
||||||
|
###########################################################################################################
|
||||||
|
|
||||||
pkgname='vimscripts-autoclose'
|
pkgname='vimscripts-autoclose'
|
||||||
_srcpkgname='AutoClose'
|
_srcpkgname='AutoClose'
|
||||||
pkgver=1.2
|
pkgver=1.2
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
epoch=
|
epoch=
|
||||||
pkgdesc="plugin that automatically closes quote, parentheses, brackets, braces, etc"
|
pkgdesc="plugin that automatically closes quote, parentheses, brackets, braces, etc"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
@ -27,13 +36,17 @@ md5sums=('8eb8630367d6978f3e2696df27eff4eb')
|
|||||||
validpgpkeys=()
|
validpgpkeys=()
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
if [ "$_neovim" = "y" ]; then
|
||||||
mkdir -p "$pkgdir/usr/share/nvim/runtime"
|
mkdir -p "$pkgdir/usr/share/nvim/runtime"
|
||||||
cp -r "${srcdir}/${_srcpkgname}-${pkgver}/plugin" \
|
cp -r "${srcdir}/${_srcpkgname}-${pkgver}/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}/${_srcpkgname}-${pkgver}/plugin" \
|
cp -r "${srcdir}/${_srcpkgname}-${pkgver}/plugin" \
|
||||||
"$pkgdir/usr/share/vim/vimfiles"
|
"$pkgdir/usr/share/vim/vimfiles"
|
||||||
|
fi
|
||||||
|
|
||||||
install -D -m644 "${srcdir}/${_srcpkgname}-${pkgver}/README" $pkgdir/usr/share/doc/$pkgname/README
|
install -D -m644 "${srcdir}/${_srcpkgname}-${pkgver}/README" $pkgdir/usr/share/doc/$pkgname/README
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user