1 # Maintainer: Serge Ziryukin <ftrvxmtrx@gmail.com>
5 pkgdesc="Ohcount is a source code line counter."
7 url="http://ohcount.sf.net"
10 makedepends=('git' 'bash' 'ruby' 'ragel' 'gperf')
15 _gitroot="git://ohcount.git.sourceforge.net/gitroot/ohcount/ohcount"
21 msg "Connecting to GIT server..."
23 if [ -d $srcdir/$_gitname ] ; then
24 cd $_gitname && git pull origin
25 msg "The local files are updated."
30 msg "GIT checkout done or server timeout"
31 msg "Starting build..."
33 cp -r $srcdir/$_gitname $srcdir/$_gitname-build
34 cd $srcdir/$_gitname-build
35 ./build ohcount || return 1
37 mkdir -p $startdir/pkg/usr/bin
38 cp bin/ohcount $startdir/pkg/usr/bin/