summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 89125901d0072cac676301cdd7193ac5b5e19cc9 (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
26
27
28
29
# Maintainer: Eric Engestrom <aur [at] engestrom [dot] ch>

pkgname=vim-sandwich-git
pkgver=r412.02e3b6d1ff
pkgrel=1
pkgdesc="Set of operator and textobject plugins to search/select/edit sandwiched textobjects"
arch=(any)
depends=(vim)
groups=(vim-plugins)
url="https://github.com/machakann/vim-sandwich"
license=(custom:vim)
source=("git+$url")
sha256sums=('SKIP')
provides=(vim-sandwich)
conflicts=(vim-sandwich)

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

package() {
  cd vim-sandwich
  find autoload plugin after macros doc \
    -type f \
    -exec install -D {} "$pkgdir"/usr/share/vim/vimfiles/{} \;
}