blob: 11fbc75860adeca1b6ce78810749c02cfc9cb4b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Maintainer: Will Handley <wh260@cam.ac.uk> (aur.archlinux.org/account/wjhandley)
pkgname=vim-tabnine
pkgver=2.8.2
pkgrel=1
pkgdesc="TabNine is the all-language autocompleter. It uses machine learning to provide responsive, reliable, and relevant suggestions."
arch=('any')
url="https://github.com/codota/tabnine-vim"
license=('https://tabnine.com/eula')
groups=('vim-plugins')
depends=('vim' 'python-language-server')
makedepends=()
provides=()
conflicts=()
replaces=('vim-youcompleteme' 'vim-tabnine-git')
backup=()
options=()
install=
source=("${url}/archive/${pkgver}.tar.gz")
sha256sums=('58ad4eca47f165d77e1170c053fa2133b545735ade56b1a6bca3ee59089d6931')
package() {
cd "$srcdir/tabnine-vim-${pkgver}"
installpath="${pkgdir}/usr/share/vim/vimfiles"
binariesver=$(grep -Eo '!binaries/.*' .gitignore | cut -c10-)
mkdir -p $installpath
mkdir -p $installpath/binaries/${pkgver}
cp -r plugin doc autoload python third_party $installpath
cp -r binaries/${binariesver}/x86_64-unknown-linux-musl/ $installpath/binaries/${binariesver}
# Remove all the unnecessary git repositories
find "$pkgdir" -name .git -exec rm -fr {} +
# Remove tests files
find "$pkgdir" -name tests -exec rm -fr {} +
# Remove unneeded docs
find "$pkgdir" -name docs -exec rm -fr {} +
}
|