2017-12-28 14:52:32 -08:00
|
|
|
# Maintainer: Trent Palmer trenttdually at gmail
|
2018-02-25 18:12:47 -08:00
|
|
|
|
|
|
|
###########################################################################################################
|
|
|
|
# Build Options
|
|
|
|
###########################################################################################################
|
|
|
|
_vim="y"
|
|
|
|
|
2018-06-08 01:00:34 -07:00
|
|
|
_neovim="n"
|
2018-02-25 18:12:47 -08:00
|
|
|
###########################################################################################################
|
|
|
|
|
2017-12-28 14:52:32 -08:00
|
|
|
_name='deoplete-jedi'
|
|
|
|
pkgname="${_name}-git"
|
2019-05-22 23:53:04 -07:00
|
|
|
pkgver=r341.55471c2
|
2017-12-28 14:52:32 -08:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="jedi add-on for deoplete completion plugin for neovim"
|
2017-12-28 18:13:41 -08:00
|
|
|
arch=('any')
|
2019-02-10 12:38:31 -08:00
|
|
|
url="https://github.com/deoplete-plugins/deoplete-jedi"
|
2017-12-28 14:52:32 -08:00
|
|
|
license=('MIT')
|
|
|
|
groups=()
|
2018-11-15 17:42:14 -08:00
|
|
|
depends=('deoplete')
|
2017-12-28 14:52:32 -08:00
|
|
|
makedepends=('git')
|
2018-01-02 01:09:32 -08:00
|
|
|
provides=('deoplete-jedi')
|
|
|
|
conflicts=('deoplete-jedi')
|
|
|
|
replaces=()
|
2017-12-28 14:52:32 -08:00
|
|
|
backup=()
|
|
|
|
options=()
|
2018-06-10 11:47:35 -07:00
|
|
|
source=(
|
2019-02-10 12:38:31 -08:00
|
|
|
'git+https://github.com/deoplete-plugins/deoplete-jedi' # deopletejedi
|
2018-06-10 11:47:35 -07:00
|
|
|
'git+https://github.com/davidhalter/jedi.git' # jedi
|
|
|
|
'git+https://github.com/davidhalter/parso.git' # parso
|
|
|
|
)
|
2017-12-28 14:52:32 -08:00
|
|
|
noextract=()
|
2018-06-10 11:47:35 -07:00
|
|
|
md5sums=('SKIP' 'SKIP' 'SKIP')
|
2017-12-28 14:52:32 -08:00
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "${srcdir}/${_name}"
|
|
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
|
|
}
|
|
|
|
|
|
|
|
prepare() {
|
2018-06-10 11:47:35 -07:00
|
|
|
msg2 'Setting up Git submodules...'
|
|
|
|
|
|
|
|
deopletejedi=("jedi" "parso")
|
|
|
|
gitprepare "deoplete-jedi" "rplugin/python3/deoplete/vendored/" "${deopletejedi[@]}"
|
|
|
|
}
|
|
|
|
|
|
|
|
gitprepare() {
|
|
|
|
local CD_DIR=$1
|
|
|
|
local GIT_PREFIX=$2
|
|
|
|
c=0
|
|
|
|
for val in "$@" ; do
|
|
|
|
if [ $c -gt 1 ]; then
|
|
|
|
FEED[$c]=$val
|
|
|
|
fi
|
|
|
|
c=$(( c + 1 ))
|
|
|
|
done
|
|
|
|
|
|
|
|
cd "$srcdir/$CD_DIR" || exit
|
|
|
|
|
|
|
|
git submodule init
|
|
|
|
for GITSUBVAR in "${FEED[@]}" ; do
|
|
|
|
git config submodule."$GIT_PREFIX$GITSUBVAR".url "$srcdir/$GITSUBVAR"
|
|
|
|
done
|
|
|
|
git submodule update
|
|
|
|
unset -v FEED
|
2017-12-28 14:52:32 -08:00
|
|
|
}
|
|
|
|
|
2018-06-10 11:47:35 -07:00
|
|
|
|
2017-12-28 14:52:32 -08:00
|
|
|
package() {
|
2018-02-25 18:12:47 -08:00
|
|
|
if [ "$_neovim" = "y" ]; then
|
2017-12-28 14:52:32 -08:00
|
|
|
mkdir -p "$pkgdir/usr/share/nvim/runtime/rplugin/python3/deoplete"
|
2018-06-10 11:47:35 -07:00
|
|
|
cp -r "${srcdir}/${_name}/rplugin/python3/deoplete/"{sources,vendored} \
|
2018-02-25 18:12:47 -08:00
|
|
|
"$pkgdir/usr/share/nvim/runtime/rplugin/python3/deoplete/"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$_vim" = "y" ]; then
|
|
|
|
mkdir -p "$pkgdir/usr/share/vim/vimfiles/rplugin/python3/deoplete"
|
2018-06-10 11:47:35 -07:00
|
|
|
cp -r "${srcdir}/${_name}/rplugin/python3/deoplete/"{sources,vendored} \
|
2018-02-25 18:12:47 -08:00
|
|
|
"$pkgdir/usr/share/vim/vimfiles/rplugin/python3/deoplete/"
|
|
|
|
fi
|
2017-12-28 14:52:32 -08:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|