updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / python-pyfetion / PKGBUILD
blob13e307851a4a0d0d146d29c3d21681796dafc102
1 # Contributor: tocer <tocer.deng@gmail.com>
2 pkgname=python-pyfetion
3 _realname=PyFetion
4 pkgver=88
5 pkgrel=1
6 pkgdesc="a python lib for China Mobile Fetion Protocol"
7 arch=("any")
8 url="http://code.google.com/p/pytool/"
9 license=('MIT')
10 depends=()
11 makedepends=('subversion')
12 install=
13 source=(setup.py)
14 _svntrunk=http://pytool.googlecode.com/svn/trunk/
15 _svnmod=pytool
16 md5sums=('11bc694bf843300dc1e1378b29d5ed36')
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 "$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/