updated on Sun Jan 22 16:00:49 UTC 2012
[aur-mirror.git] / python-podsixnet-svn / PKGBUILD
blob7b86452b70052de78dbbd13e0b54563c3f9501df
1 # Contributor: Franco Tortoriello <franco (d0t) tortoriello (at) gmail (d0t) com>
3 pkgname=python-podsixnet-svn
4 pkgver=152
5 pkgrel=6
6 pkgdesc="Python library for multiplayer networking games"
7 arch=(any)
8 url="http://mccormick.cx/projects/PodSixNet/"
9 license=('LGPL3')
10 depends=('python2')
11 makedepends=('subversion' 'python2-distribute')
13 _svntrunk="http://podsixnet.googlecode.com/svn/podsixnet/"
14 _svnmod="PodSixNet"
16 build() {
17   cd ${srcdir}
19   if [[ -d ${_svnmod}/.svn ]]; then
20      (cd ${_svnmod} && svn up -r ${pkgver})
21   else
22      svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
23   fi
25   msg "SVN checkout done or server timeout"
26   msg "Starting make..."
28   rm -rf ${_svnmod}-build
29   cp -r ${_svnmod} ${_svnmod}-build
30   cd ${_svnmod}-build
31   python2 setup.py install --root=${pkgdir}
32   cp -R examples "${pkgdir}/usr/lib/python2.7/site-packages/${_svnmod}"
33   rm -rf ${pkgdir}/usr/lib/python2.7/site-packages/*.egg-info