2017-12-25 20:56:21 -08:00
|
|
|
# Maintainer: Trent Palmer trenttdually at gmail
|
|
|
|
|
2018-06-07 14:35:43 -07:00
|
|
|
###########################################################################################################
|
|
|
|
# Build Options
|
|
|
|
###########################################################################################################
|
|
|
|
_vim="y"
|
|
|
|
|
|
|
|
# if you have a newer version of neovim you may not need or want to set _neovim="y"
|
|
|
|
_neovim="n"
|
|
|
|
###########################################################################################################
|
|
|
|
|
2017-12-25 20:56:21 -08:00
|
|
|
pkgname='vimscripts-autoclose'
|
|
|
|
_srcpkgname='AutoClose'
|
|
|
|
pkgver=1.2
|
2024-05-25 11:11:54 -07:00
|
|
|
pkgrel=3
|
2017-12-25 20:56:21 -08:00
|
|
|
epoch=
|
|
|
|
pkgdesc="plugin that automatically closes quote, parentheses, brackets, braces, etc"
|
|
|
|
arch=('any')
|
|
|
|
url="https://github.com/vim-scripts/AutoClose"
|
|
|
|
license=('unknown')
|
|
|
|
groups=()
|
|
|
|
depends=('vim' 'neovim')
|
|
|
|
makedepends=()
|
|
|
|
checkdepends=()
|
|
|
|
optdepends=()
|
|
|
|
provides=('vimscripts-autoclose')
|
2018-01-02 01:03:01 -08:00
|
|
|
conflicts=('vim-auto-pairs')
|
2024-05-25 11:11:54 -07:00
|
|
|
replaces=()
|
2017-12-25 20:56:21 -08:00
|
|
|
backup=()
|
|
|
|
options=()
|
|
|
|
install=
|
|
|
|
changelog=
|
2017-12-27 23:08:27 -08:00
|
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/vim-scripts/AutoClose/archive/${pkgver}.tar.gz")
|
2017-12-25 20:56:21 -08:00
|
|
|
noextract=()
|
|
|
|
md5sums=('8eb8630367d6978f3e2696df27eff4eb')
|
|
|
|
validpgpkeys=()
|
|
|
|
|
|
|
|
package() {
|
2018-06-07 14:35:43 -07:00
|
|
|
if [ "$_neovim" = "y" ]; then
|
2017-12-25 20:56:21 -08:00
|
|
|
mkdir -p "$pkgdir/usr/share/nvim/runtime"
|
|
|
|
cp -r "${srcdir}/${_srcpkgname}-${pkgver}/plugin" \
|
|
|
|
"$pkgdir/usr/share/nvim/runtime"
|
2018-06-07 14:35:43 -07:00
|
|
|
fi
|
2017-12-25 20:56:21 -08:00
|
|
|
|
2018-06-07 14:35:43 -07:00
|
|
|
if [ "$_vim" = "y" ]; then
|
2017-12-25 20:56:21 -08:00
|
|
|
mkdir -p "$pkgdir/usr/share/vim/vimfiles"
|
|
|
|
cp -r "${srcdir}/${_srcpkgname}-${pkgver}/plugin" \
|
|
|
|
"$pkgdir/usr/share/vim/vimfiles"
|
2018-06-07 14:35:43 -07:00
|
|
|
fi
|
2017-12-25 20:56:21 -08:00
|
|
|
|
2017-12-27 23:08:27 -08:00
|
|
|
install -D -m644 "${srcdir}/${_srcpkgname}-${pkgver}/README" $pkgdir/usr/share/doc/$pkgname/README
|
2017-12-25 20:56:21 -08:00
|
|
|
}
|