updated on Mon Jan 23 04:00:55 UTC 2012
[aur-mirror.git] / python2-freshen-git / PKGBUILD
blob9d952c8db987281d76c23eb593264c6d487cb13b
1 # Maintainer: Marat Akhin <Marat.Akhin@gmail.com>
3 pkgname=python2-freshen-git
4 pkgver=20110405
5 pkgrel=1
6 arch=('i686' 'x86_64')
7 license=('GPL')
8 pkgdesc="Clone of the Cucumber BDD framework for Python"
9 url="https://github.com/rlisagor/freshen"
10 depends=('python2' 'python2-nose' 'python2-yaml')
11 makedepends=('git')
13 _gitroot="https://github.com/rlisagor/freshen.git"
14 _gitname="freshen"
16 build() {
17   cd "$srcdir"
18   msg "Connecting to GIT server...."
20   if [ -d $_gitname ] ; then
21     cd $_gitname && git pull origin
22     msg "The local files are updated."
23   else
24     git clone $_gitroot $_gitname
25   fi
27   msg "GIT checkout done or server timeout"
28   msg "Starting make..."
30   rm -rf "$srcdir/$_gitname-build"
31   cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
32   cd "$srcdir/$_gitname-build"
34   python2 setup.py install --root=$pkgdir