aur-packages/deoplete-git/PKGBUILD

57 lines
1.7 KiB
Bash
Raw Normal View History

2017-12-24 21:15:39 -08:00
# Maintainer: Trent Palmer trenttdually at gmail
###########################################################################################################
# Build Options
###########################################################################################################
_vim="y"
_neovim="y"
###########################################################################################################
2017-12-24 21:15:39 -08:00
_name='deoplete'
pkgname="${_name}-git"
pkgver=4.0.serial.r107.gb14aa70
2017-12-24 21:15:39 -08:00
pkgrel=1
pkgdesc="deoplete completion plugin for neovim"
arch=('any')
2017-12-24 21:15:39 -08:00
url="https://github.com/Shougo/deoplete.nvim"
license=('MIT')
groups=()
depends=('python-neovim')
optdepends=('vim: vim support'
'neovim: neovim support'
'nvim-yarp: vim support'
'vim-hug-neovim-rpc: vim support')
2017-12-24 21:15:39 -08:00
makedepends=('git')
2018-01-02 01:09:32 -08:00
provides=('deoplete')
conflicts=('deoplete')
replaces=('')
2017-12-24 21:15:39 -08:00
backup=()
options=()
install="${_name}.install"
source=("${_name}::${url//https/git}")
noextract=()
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/${_name}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
2017-12-24 21:15:39 -08:00
}
package() {
if [ "$_neovim" = "y" ]; then
mkdir -p "$pkgdir/usr/share/nvim/runtime"
2017-12-25 00:18:05 -08:00
cp -r "${srcdir}/${_name}/"{autoload,doc,plugin,rplugin} \
"$pkgdir/usr/share/nvim/runtime"
fi
if [ "$_vim" = "y" ]; then
mkdir -p "$pkgdir/usr/share/vim/vimfiles"
cp -r "${srcdir}/${_name}/"{autoload,doc,plugin,rplugin} \
"$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}/LICENSE" $pkgdir/usr/share/licenses/$pkgname/LICENSE
2017-12-24 21:15:39 -08:00
}