summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3535f7a589d85ad87349a7951aa3565a421c3b68 (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: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Vlad Petrov ejiek@mail.ru

pkgname=vim-table-mode-git
pkgver=4.7.3.r17.g01a395d
pkgrel=1
pkgdesc='Automatic table creator and formatter'
arch=('any')
url='https://github.com/dhruvasagar/vim-table-mode'
license=('custom:vim')
groups=('vim-plugins')
depends=('vim-plugin-runtime')
makedepends=('git')
source=("$pkgname::git+$url")
sha256sums=('SKIP')

pkgver() {
  git -C "$pkgname" describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./'
}

package() {
  cd "$pkgname"
  find autoload doc ftplugin plugin t \
    -type f -exec install -Dm 644 '{}' "$pkgdir/usr/share/vim/vimfiles/{}" \;

  install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}

# vim:set et sw=2 ts=2 tw=79: