summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3a4f3536080c05891a4ff2b83f1a1bf1f487a057 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
pkgname=cmp-buffer
pkgver=5dde543
pkgrel=2
pkgdesc='nvim-cmp source for buffer words'
arch=('any')
url=https://github.com/hrsh7th/cmp-buffer
license=('')
groups=('neovim-plugins')
depends=('neovim' 'lua')
makedepends=('git')
optdepends=('neovim-plug: for plugin manager')
source=("git+${url}")
sha256sums=('SKIP')
package(){
    cd "${srcdir}/cmp-buffer"
    mkdir -p "${pkgdir}/usr/share/nvim/runtime"
    cp -a lua "${pkgdir}/usr/share/nvim/runtime/"
    cp -a after "${pkgdir}/usr/share/nvim/runtime/"
}
pkgver(){
    cd "${srcdir}/cmp-buffer"
    git rev-parse --short HEAD
}