# Maintainer: Eric Engestrom <aur [at] engestrom [dot] ch>

pkgname=vim-sandwich-git
pkgver=1.0.0
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() {
  git -C vim-sandwich describe --tags --abbrev=10 | \
    sed 's/^v//; s/-/+/; s/-/./'
}

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