updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / vim-unimpaired / PKGBUILD
blob473cfccf98b0dceb049a33f6ff7c732b5c01cb72
1 # Contributor: János Illés <ijanos@gmail.com>
2 pkgname=vim-unimpaired
3 pkgver=20101116
4 pkgrel=1
5 pkgdesc="Pairs of handy bracket mappings. Latest git version"
6 arch=('any')
7 url="http://www.vim.org/scripts/script.php?script_id=1590"
8 license=('custom:vim')
9 groups=('vim-plugins')
10 depends=('vim')
11 makedepends=('git')
12 install=vimdoc.install
13 _gitroot='https://github.com/tpope/vim-unimpaired.git'
14 _gitname='vim-unimpaired'
16 build() {
17   cd "$srcdir"
18   msg "Connecting to GIT server...."
20   if [ -d $_gitname ] ; then
21     cd $_gitname && git pull origin
22     msg "The local files are updated."
23   else
24     git clone $_gitroot $_gitname
25   fi
27   msg "GIT checkout done or server timeout"
28   cd ${srcdir}/vim-unimpaired
30   installpath="${pkgdir}/usr/share/vim/vimfiles"
32   install -Dm644 doc/unimpaired.txt $installpath/doc/unimpaired.txt
33   install -Dm644 plugin/unimpaired.vim $installpath/plugin/unimpaired.vim
37 # vim:set ts=2 sw=2 et: