# $Id: PKGBUILD 110337 2014-04-28 06:46:26Z thestinger $
# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
# Contributor: Kaiting Chen <kaitocracy@gmail.com>
# Contributor: Aaron Schaefer <aaron@elasticdog.com>

pkgname=vim-supertab
pkgver=2.1
pkgrel=1
pkgdesc='A Vim plugin that allows you to use the tab key to do all insert completion.'
arch=('any')
url='https://github.com/ervandew/supertab'
license=('BSD')
depends=('vim')
groups=('vim-plugins')
install=vimdoc.install
source=("https://github.com/ervandew/supertab/archive/$pkgver.tar.gz"
        'LICENSE')
md5sums=('8c9fd74e228521f64221b91e1a54abfe'
         'a232f3fa724b2e52e1678adcc84f67bb')

package() {
  cd "$srcdir/supertab-$pkgver"

  installpath="$pkgdir/usr/share/vim/vimfiles"

  install -Dm0644 doc/supertab.txt "$installpath/doc/supertab.txt"
  install -Dm0644 plugin/supertab.vim "$installpath/plugin/supertab.vim"
  install -Dm0644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
