updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / python-testoob-svn / PKGBUILD
blob9a68dab86f9658fabfeb85b32ec5ae86ad783691
1 # Contributor: giniu <gginiu@gmail.com>
2 pkgname=python-testoob-svn
3 pkgver=1008
4 pkgrel=1
5 pkgdesc="Advanced Python testing framework."
6 arch=('any')
7 url="http://code.google.com/p/testoob/"
8 license=('Apache')
9 depends=('python')
10 makedepends=('subversion' 'setuptools')
11 provides=('python-testoob')
12 conflicts=('python-testoob')
13 options=(!emptydirs)
15 _svntrunk=http://testoob.googlecode.com/svn/trunk
16 _svnmod=TestOOB
18 build() {
19   cd "$srcdir"
21   if [ -d "$_svnmod"/.svn ]; then
22     (cd "$_svnmod" && svn up -r "$pkgver")
23   else
24     svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
25   fi
27   msg "SVN checkout done or server timeout"
28   msg "Starting make..."
30   rm -rf "$_svnmod-build"
31   svn export "$_svnmod" "$_svnmod-build"
32   cd "$_svnmod-build"
34   python setup.py install --root="$pkgdir"/ --optimize=1 || return 1