4 pkgdesc="Semantic grep for the C language (git version)"
5 url="http://home.regit.org/software/coccigrep/"
7 depends=('python2' 'coccinelle')
9 optdepends=('python2-pygments: to highlight the C-code colorful')
11 arch=('i686' 'x86_64')
12 _gitroot="https://github.com/regit/coccigrep.git"
18 if [ -d $_gitname ] ; then
19 cd $_gitname && git pull origin
20 msg "The local files are updated."
27 rm -rf $_gitname-build
28 git clone $_gitname{,-build}
30 msg "GIT checkout done or server timeout"
31 msg "Starting make..."
34 python2 setup.py build
39 python2 setup.py install --prefix="$pkgdir/usr"