updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pyglet-hg / PKGBUILD
blob5f4bb8decf10612b08079448a7ab7a4876b09dc5
1 # Maintainer: Lubosz Sarnecki <lubosz at gmail com>
3 pkgname=pyglet-hg
4 pkgver=20101219
5 pkgrel=1
6 pkgdesc="A cross-platform windowing and multimedia library for Python."
7 arch=(any)
8 url="http://pyglet.org"
9 license=('BSD')
10 depends=('python2')
11 makedepends=('python2-distribute' 'mercurial')
12 conflicts=('pyglet')
13 provides=('pyglet')
14 source=()
15 md5sums=()
17 _hgbranch=https://pyglet.googlecode.com/hg
18 _hgrepo=pyglet
20 build() {
21         cd ${srcdir}
23         if [ -d ${_hgrepo} ]; then
24                 (cd ${_hgrepo} && hg pull -u) || return 1
25         else
26                 hg clone ${_hgbranch} ${_hgrepo} || return 1
27         fi
29         msg "Mercurial clone done or server timeout"
30         
31         cd ${_hgrepo}
32   
33         python2 setup.py build || return 1
34         python2 setup.py install --root=$pkgdir --optimize=1 || return 1