diff options
author | zhanghua000 | 2021-10-13 12:40:47 +0800 |
---|---|---|
committer | zhanghua000 | 2021-10-13 12:40:47 +0800 |
commit | 13b827dc8582e014561f9d27c8c3758f79683cc9 (patch) | |
tree | 2876d2f9380f02abf013cf625a96f36cf108982b /PKGBUILD | |
download | aur-13b827dc8582e014561f9d27c8c3758f79683cc9.tar.gz |
First release
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8af220f2d265 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +pkgname=nvim-cmp +pkgver=49acc84 +pkgrel=1 +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' 'neovim-plug' 'lua' 'cmp-nvim-lsp' 'cmp-buffer') +makedepends=('git') +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 +} |