1 # Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com>
2 pkgname=vim-detectindent
5 pkgdesc="Vim script for automatically detecting indent setting"
7 url="http://github.com/ciaranm/detectindent"
10 conflicts=('vim-detectindent')
14 md5sums=('9cbc86548400621ea7ad55d4386d81e2')
15 _gitroot="git://github.com/ciaranm/detectindent.git"
16 _gitname="detectindent"
20 msg "Connecting to GIT server...."
22 if [[ -d "$_gitname" ]]; then
23 cd "$_gitname" && git pull origin
24 msg "The local files are updated."
26 git clone "$_gitroot" "$_gitname"
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: