1 pkgname=python-pygame2-hg
4 pkgdesc="Pygame Reloaded, a Python game library"
6 url="http://code.google.com/p/pgreloaded/"
8 depends=('python' 'sdl_mixer' 'sdl_ttf' 'sdl_image' 'sdl_gfx' 'portmidi')
9 makedepends=('mercurial')
10 conflicts=('pygame2-py3')
11 provides=('pygame2-py3')
13 _hgroot=https://pgreloaded.googlecode.com/hg/
18 msg "Connecting to Mercurial server...."
20 if [[ -d "$_hgrepo" ]]; then
23 msg "The local files are updated."
25 hg clone "$_hgroot" "$_hgrepo"
28 msg "Mercurial checkout done or server timeout"
29 msg "Starting build..."
31 rm -rf "$srcdir/$_hgrepo-build"
32 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
33 cd "$srcdir/$_hgrepo-build"
39 cd "$srcdir/$_hgrepo-build"
41 python setup.py install --root="$pkgdir"
42 cp -R doc "$pkgdir/usr/lib/python3.2/site-packages/pygame2"