updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / namcap-git / PKGBUILD
blob8e1a5fa8cacec3e4901d77f33d7cb650eb10fbb2
1 # Contributor: Jason Chu <jason@archlinux.org>
2 # Contributor: Jesse Young <jesse.young@gmail.com>
4 pkgname=namcap-git
5 pkgver=20110227
6 pkgrel=1
7 pkgdesc="A Pacman package analyzer, git version"
8 arch=('any')
9 url="http://projects.archlinux.org/namcap.git/"
10 license=('GPL')
11 depends=('python' 'licenses')
12 makedepends=('git' 'python-distribute')
13 source=()
14 md5sums=()
15 provides=('namcap')
16 conflicts=('namcap')
18 _gitroot='http://projects.archlinux.org/git/namcap.git'
19 _gitname=namcap
21 build() {
22   cd "$srcdir"
23   msg "Connecting to GIT server...."
25   if [ -d $_gitname ] ; then
26     cd $_gitname && git pull origin
27     msg "The local files are updated."
28   else
29     git clone $_gitroot $_gitname
30   fi
32   msg "GIT checkout done or server timeout"
33   msg "Starting make..."
35   rm -rf "$srcdir/$_gitname-build"
36   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
37   cd "$srcdir/$_gitname-build"
39   #
40   # BUILD HERE
41   #
42   python ./setup.py install --root=${pkgdir}