diff options
author | Luis Martinez | 2021-10-15 13:57:46 -0500 |
---|---|---|
committer | Luis Martinez | 2021-10-15 13:57:46 -0500 |
commit | 017eba1215b10ba651223e3715b2259354d663c3 (patch) | |
tree | d2c1cd022eb26562e40ddd18b188ad6d1de7774f /PKGBUILD | |
download | aur-neovim-fixcursorhold-git.tar.gz |
initial commit
based on neovim-fix-cursorhold-git, reuploading to match upstream name
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c53af2e37c28 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Luis Martinez <luis dot martinez at disroot dot org> + +pkgname=neovim-fixcursorhold-git +pkgver=r10.f2572b0 +pkgrel=1 +pkgdesc="Fixes CursorHold performance in Neovim" +arch=('any') +url="https://github.com/antoinemadec/fixcursorhold.nvim" +license=('MIT') +groups=('neovim-plugins') +depends=('neovim') +makedepends=('git') +provides=("${pkgname%-git}" 'neovim-fix-cursorhold') +conflicts=("${pkgname%-git}") +replaces=('neovim-fix-cursorhold') +source=("$pkgname::git+$url") +sha256sums=('SKIP') + +pkgver() { + cd "$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "$pkgname" + install -Dm 644 plugin/fix_cursorhold_nvim.vim -t "$pkgdir/usr/share/nvim/runtime/plugin/" + install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" + install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/" +} |