1 # Maintainer: Alexander Rødseth <rodseth@gmail.com>
5 pkgdesc="ViM autocompletion for C"
6 url="https://github.com/nsf/ccode"
11 _gitroot="git://github.com/nsf/ccode.git"
16 msg "Connecting to github.com GIT server...."
17 if [[ -d $_gitname ]] ; then
18 ( cd "$_gitname" && git pull origin )
19 msg "The local files are updated."
23 msg "GIT checkout done or server timeout"
25 rm -rf "$_gitname-build"
26 git clone "$_gitname" "$_gitname-build"
30 head -2 update.bash > compile.bash
36 cd "$srcdir/$_gitname-build"
38 install -Dm755 ccode "$pkgdir/usr/bin/ccode"
39 install -Dm644 vim/plugin/ccode.vim \
40 "$pkgdir/usr/share/vim/vimfiles/plugin/ccode.vim"
41 install -Dm644 LICENSE \
42 "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
44 # vim:set ts=2 sw=2 et: