# Maintainer: Konstantin Podsvirov <konstantin@podsvirov.pro>

pkgname=editorconfig-vim
pkgver=1.1.1
pkgrel=1
pkgdesc="EditorConfig plugin for Vim - editorconfig.org"
arch=('i686' 'x86_64')
url="https://github.com/editorconfig/editorconfig-vim"
license=("custom")
groups=("vim-plugins")
depends=("vim")
install=vimdoc.install
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/editorconfig/editorconfig-vim/archive/v${pkgver}.tar.gz")
sha256sums=("eb8be206659e6fb3bab9df66fe9b80c14265325e3d9a4bbaad7c63058c2ba558")

package() {
  mkdir -p ${pkgdir}/usr/share/vim/vimfiles/{plugin,doc,autoload}
  cd "${srcdir}/${pkgname}-${pkgver}"
  cp -r plugin/* ${pkgdir}/usr/share/vim/vimfiles/plugin/
  cp doc/editorconfig.txt ${pkgdir}/usr/share/vim/vimfiles/doc/
  cp -r autoload/* ${pkgdir}/usr/share/vim/vimfiles/autoload/
  mkdir -p ${pkgdir}/usr/share/licenses/editorconfig-vim
  cp LICENSE ${pkgdir}/usr/share/licenses/editorconfig-vim
}
