summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b2b719cc2c104ddb8472e716959f27558de8d35f (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
pkgname=nvim-cmp
pkgver=49acc84
pkgrel=2
pkgdesc='A completion plugin for neovim coded in Lua.'
arch=('any')
url=https://github.com/hrsh7th/nvim-cmp
license=('MIT')
groups=('neovim-plugins')
depends=('neovim' 'lua' 'cmp-nvim-lsp' 'cmp-buffer')
makedepends=('git')
optdependss=('neovim-plug: for plugin manager')
source=("git+${url}")
sha256sums=('SKIP')
package(){
    cd "${srcdir}/nvim-cmp"
    mkdir -p "${pkgdir}/usr/share/nvim/runtime"
    install -Dm644 "plugin/cmp.lua" "${pkgdir}/usr/share/nvim/runtime/plugin/cmp.lua"
    cp -a "lua" "${pkgdir}/usr/share/nvim/runtime/"
    cp -a "autoload" "${pkgdir}/usr/share/nvim/runtime/"
}
pkgver(){
    cd "${srcdir}/nvim-cmp"
    git rev-parse --short HEAD
}