summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: be3e90131d5ac601dc4acae2ef49d7777f6852a9 (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
# Maintainer: Eric Engestrom <aur [at] engestrom [dot] ch>

pkgname=vim-bracketed-paste-git
pkgver=r38.c4c639f3ca
pkgrel=1
pkgdesc='Vim plugin to handle bracketed-paste-mode (aka. automatic `:set paste`)'
arch=('any')
LICENSE=('MIT')
url='https://github.com/conradirwin/vim-bracketed-paste'
source=("git+$url")
sha256sums=('SKIP')
provides=(vim-bracketed-paste)
conflicts=(vim-bracketed-paste)

pkgver() {
  cd vim-bracketed-paste
  printf 'r%d.%s' \
    $(git rev-list --count HEAD) \
    $(git rev-parse HEAD | head -c10)
}

package() {
  install -Dm644 vim-bracketed-paste/plugin/bracketed-paste.vim \
    "$pkgdir"/usr/share/vim/vimfiles/plugin/bracketed-paste.vim
}