1 # Maintainer: wido <widomaker2k7@gmail.com>
7 pkgdesc="MPD controller from within Vim"
8 url="http://gavin.brokentrain.net/projects/vimmpc/"
13 depends=('mpc' 'gvim' 'python-mpd' 'python2')
14 install=vimdoc.install
15 #source=(http://svn.navi.cx/misc/trunk/python/bemused/mpdclient2.py)
18 _gitroot="git://github.com/gaving/vimmpc.git"
23 msg "Connecting to the GIT server...."
25 if [[ -d $srcdir/$_gitname ]] ; then
28 msg "The local files are updated."
30 git clone $_gitroot $_gitname
33 msg "GIT checkout done"
34 msg "Starting make..."
36 git clone $srcdir/$_gitname $srcdir/$_gitname-build
40 for file in $(find . -name '*.py' -print); do
41 sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
42 sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
45 cd $srcdir/$_gitname-build
46 install -d ${pkgdir}/usr/share/vim/vimfiles/plugin/
47 sed -i 's/function TrackFoldText/function! TrackFoldText/g' $_pkgname.vim
48 install -Dm 755 $_pkgname.{vim,py} ${pkgdir}/usr/share/vim/vimfiles/plugin/