summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 72caaa959e39006cd4cd5c05dda9c1b6a48e9242 (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
30
# Maintainer: lmartinez-mirror
pkgname=vim-cmake4vim-git
pkgver=r109.b48f1b4
pkgrel=1
pkgdesc="Vim plugin for CMake projects"
arch=('any')
url="https://github.com/ilyachur/cmake4vim"
license=('GPL3')
groups=('vim-plugins')
depends=('cmake')
optdepends=('vim-dispatch'
            'vim-fzf'
            'vim-ctrlp')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url")
md5sums=('SKIP')

pkgver() {
  cd "$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

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