updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / ohcount-git / PKGBUILD
blob31e56a108f788103c2c76c8a475fda844ec6dce3
1 # Maintainer: Serge Ziryukin <ftrvxmtrx@gmail.com>
2 pkgname=ohcount-git
3 pkgver=20100710
4 pkgrel=2
5 pkgdesc="Ohcount is a source code line counter."
6 arch=('i686' 'x86_64')
7 url="http://ohcount.sf.net"
8 license=('GPL')
9 depends=('pcre')
10 makedepends=('git' 'bash' 'ruby' 'ragel' 'gperf')
11 provides=('ohcount')
12 conflicts=('ohcount')
13 install=
15 _gitroot="git://ohcount.git.sourceforge.net/gitroot/ohcount/ohcount"
16 _gitname="ohcount"
18 build() {
19   cd $srcdir
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."
26   else
27     git clone $_gitroot
28   fi
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/