# Maintainer: KevMoriarty pkgname=vim-vinegar-git pkgver=20140618 pkgrel=1 pkgdesc='Combine with netrw to create a delicious salad dressing' arch=('any') url="https://github.com/tpope/vim-vinegar" license=('custom') depends=('vim') groups=('vim-plugins') install='' conflicts=('') replaces=('') provides=('') # Cleaner _git format _gitdomain='github.com' _gituser='tpope' _gitname='vim-vinegar' _gitroot="https://$_gitdomain/$_gituser/$_gitname.git" build() { cd "$srcdir" msg "Connecting to GIT server.... [$_gitdomain:$_gituser:$_gitname]" if [ -d $_gitname ] ; then cd $_gitname && git pull origin msg "The local files are updated." else git clone --depth=1 $_gitroot $_gitname fi msg "GIT checkout done or server timeout" } package() { install -d ${pkgdir}/usr/share/vim/vimfiles/plugin install -D -m644 ${srcdir}/$_gitname/plugin/* \ ${pkgdir}/usr/share/vim/vimfiles/plugin/ }