1 # Maintainer : SpepS <dreamspepser at yahoo dot it>
2 # Contributor: Thomas Conneely tc116 at le dot ac dot uk
7 pkgdesc="A framework for building graphical/interactive applications."
9 url="http://cocos2d.org/"
10 license=('BSD' 'LGPL' 'custom')
11 depends=('pyglet' 'python2-numpy')
12 makedepends=('python2-distribute')
13 source=("http://los-cocos.googlecode.com/files/$pkgname-$pkgver.zip")
15 md5sums=('bf369fe1806828247fa8b46ca4a6d0ca')
18 cd "$srcdir/$pkgname-$pkgver"
20 python2 setup.py build
24 cd "$srcdir/$pkgname-$pkgver"
26 python2 setup.py install --root="$pkgdir/" --optimize=1
29 install -d "$pkgdir/usr/share/doc/$pkgname"
30 cp -a doc/* "$pkgdir/usr/share/doc/$pkgname"
33 install -d "$pkgdir/usr/share/$pkgname"
34 cp -a samples "$pkgdir/usr/share/$pkgname"
37 install -d "$pkgdir/usr/share/licenses/$pkgname"
38 cp -a LICENSE* "$pkgdir/usr/share/licenses/$pkgname"
41 sed -i 's/env python/&2/' `grep -rl "env python" "$pkgdir/"`