2018-08-26 19:41:34 -07:00
|
|
|
# Maintainer: Trent Palmer trenttdually at gmail
|
|
|
|
|
|
|
|
###########################################################################################################
|
|
|
|
# Build Options
|
|
|
|
###########################################################################################################
|
|
|
|
_vim="y"
|
|
|
|
|
|
|
|
_neovim="n"
|
|
|
|
###########################################################################################################
|
|
|
|
|
|
|
|
_name='deoplete-ternjs'
|
|
|
|
pkgname="${_name}-git"
|
2020-01-16 23:59:06 -08:00
|
|
|
pkgver=r103.5405e84
|
2019-07-08 05:28:11 -07:00
|
|
|
pkgrel=1
|
2018-08-26 19:41:34 -07:00
|
|
|
pkgdesc="javascript add-on for deoplete completion plugin for neovim"
|
|
|
|
arch=('any')
|
|
|
|
url="https://github.com/carlitux/deoplete-ternjs"
|
|
|
|
license=('MIT')
|
|
|
|
groups=()
|
2018-11-15 17:42:55 -08:00
|
|
|
depends=('deoplete' 'nodejs-tern') # nodejs-tern is available in the aur
|
2018-08-26 19:41:34 -07:00
|
|
|
makedepends=('git')
|
|
|
|
provides=('deoplete-ternjs')
|
|
|
|
conflicts=('deoplete-ternjs')
|
|
|
|
replaces=()
|
|
|
|
backup=()
|
|
|
|
options=()
|
|
|
|
source=('git+https://github.com/carlitux/deoplete-ternjs') # deoplete-ternjs
|
|
|
|
|
|
|
|
noextract=()
|
|
|
|
md5sums=('SKIP')
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "${srcdir}/${_name}"
|
|
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
if [ "$_neovim" = "y" ]; then
|
|
|
|
mkdir -p "$pkgdir/usr/share/nvim/runtime"
|
2019-01-08 14:36:46 -08:00
|
|
|
cp -r "${srcdir}/${_name}/"{plugin,rplugin,autoload} \
|
2018-08-26 19:41:34 -07:00
|
|
|
"$pkgdir/usr/share/nvim/runtime"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$_vim" = "y" ]; then
|
|
|
|
mkdir -p "$pkgdir/usr/share/vim/vimfiles"
|
2019-01-08 14:36:46 -08:00
|
|
|
cp -r "${srcdir}/${_name}/"{plugin,rplugin,autoload} \
|
2018-08-26 19:41:34 -07:00
|
|
|
"$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
|
|
|
|
}
|