updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / crepo-git / PKGBUILD
blob302690980b1126a7d14ce1b854589c03617965dc
1 # Maintainer: Harsh J <harsh AT cloudera DOT com>
3 # Contributor: Your Name <youremail@domain.com>
5 pkgname=crepo-git
6 pkgver=20110321
7 pkgrel=2
8 pkgdesc="Cloudera repository management tools"
9 arch=(any)
10 url="https://github.com/cloudera/crepo"
11 license=('APACHE')
12 depends=('python2' 'python2-distribute' 'git')
14 _gitroot="https://github.com/cloudera/crepo.git"
15 _gitname="crepo"
17 build() {
18   if [ -d $_gitname ]; then
19     cd $_gitname && git pull origin
20     msg "The local files are updated."
21   else
22     git clone $_gitroot $_gitname
23   fi
24   cd $srcdir/$_gitname
25   python2 setup.py install --root=$pkgdir/ --optimize=1