updated on Fri Jan 13 08:00:32 UTC 2012
[aur-mirror.git] / vim-detectindent / PKGBUILD
blobd15c2de977943c0283f587a17f334e352e8b8c82
1 # Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com>
2 pkgname=vim-detectindent
3 pkgver=20111103
4 pkgrel=1
5 pkgdesc="Vim script for automatically detecting indent setting"
6 arch=('any')
7 url="http://github.com/ciaranm/detectindent"
8 license=('custom:vim')
9 groups=('vim-plugins')
10 conflicts=('vim-detectindent')
11 depends=('vim')
12 makedepends=('git')
13 source=(license.txt)
14 md5sums=('9cbc86548400621ea7ad55d4386d81e2')
15 _gitroot="git://github.com/ciaranm/detectindent.git"
16 _gitname="detectindent"
18 package() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [[ -d "$_gitname" ]]; then
23     cd "$_gitname" && git pull origin
24     msg "The local files are updated."
25   else
26     git clone "$_gitroot" "$_gitname"
27   fi
29   msg "GIT checkout done or server timeout"
31   rm -rf "$srcdir/$_gitname-build"
32   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33   cd "$srcdir/$_gitname-build"
35   local _installpath="${pkgdir}/usr/share/vim/vimfiles"
37   install -d "$_installpath"
38   cp -R * "$_installpath"
39   install -Dm644 "${srcdir}"/license.txt "${pkgdir}/usr/share/licenses/${pkgname}/license.txt"
42 # vim:set ts=2 sw=2 et: