summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 526ff478b639035cb517bae6123f30ffcbc575af (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
31
32
33
34
35
# Maintainer: Rhinoceros <https://aur.archlinux.org/account/rhinoceros>
# Contributor: Matthew Gamble
# Contributor: Andy Weidenbaum <archbaum@gmail.com>

pkgname=vim-csv-git
_pkgname=csv.vim
pkgver=r612.ece4fde
pkgrel=1
epoch=1
pkgdesc='csv.vim: a filetype plugin for csv files'
arch=('any')
url='https://github.com/chrisbra/csv.vim'
license=('unknown')
groups=('vim-plugins')
depends=('vim>=7.4')
makedepends=('git')
source=("git+https://github.com/chrisbra/${_pkgname}.git")
sha256sums=('SKIP')
provides=('vim-csv')
conflicts=('vim-csv')

pkgver() {
  cd ${_pkgname}
  # No tags in the GitHub version
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd ${_pkgname}
  _installpath="${pkgdir}/usr/share/vim/vimfiles"
  install -dm755 "${_installpath}"
  for _appdir in autoload doc ftdetect ftplugin plugin syntax; do
    cp -dpr --no-preserve=ownership $_appdir "${_installpath}/${_appdir}"
  done
}