1 # Contributor: tocer <tocer.deng@gmail.com>
2 pkgname=python-pyfetion
6 pkgdesc="a python lib for China Mobile Fetion Protocol"
8 url="http://code.google.com/p/pytool/"
11 makedepends=('subversion')
14 _svntrunk=http://pytool.googlecode.com/svn/trunk/
16 md5sums=('11bc694bf843300dc1e1378b29d5ed36')
21 if [ -d $_svnmod/.svn ]; then
22 (cd $_svnmod && svn up -r $pkgver)
24 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
27 msg "SVN checkout done or server timeout"
28 msg "Starting make..."
30 rm -rf "$srcdir/$_svnmod-build"
31 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
32 cp "$startdir/setup.py" "$srcdir/$_svnmod-build/$_realname/"
33 cd "$srcdir/$_svnmod-build/$_realname"
35 python setup.py install --root=$startdir/pkg/