summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0487c47255f5317b849659bbb8f5b66bab2a7a6b (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
# Maintainer: lmartinez-mirror
pkgname=vim-vifm-git
pkgver=0.11.r72.g1fec4a02
pkgrel=1
pkgdesc="Vim plugin that allows use of vifm as a file picker"
arch=('any')
url="https://github.com/vifm/vifm.vim"
license=('unknown')
groups=('vim-plugins')
depends=('vim-plugin-runtime' 'vifm')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url")
md5sums=('SKIP')

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

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