updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / cocos2d / PKGBUILD
blobfa299749c082155649fccbe2496aacabd7a1d477
1 # Maintainer : SpepS <dreamspepser at yahoo dot it>
2 # Contributor: Thomas Conneely tc116 at le dot ac dot uk
4 pkgname=cocos2d
5 pkgver=0.5.0
6 pkgrel=1
7 pkgdesc="A framework for building graphical/interactive applications."
8 arch=('any')
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")
14 options=(!emptydirs)
15 md5sums=('bf369fe1806828247fa8b46ca4a6d0ca')
17 build() {
18   cd "$srcdir/$pkgname-$pkgver"
20   python2 setup.py build
23 package() {
24   cd "$srcdir/$pkgname-$pkgver"
26   python2 setup.py install --root="$pkgdir/" --optimize=1
28   # docs
29   install -d "$pkgdir/usr/share/doc/$pkgname"
30   cp -a doc/* "$pkgdir/usr/share/doc/$pkgname"
32   # examples
33   install -d "$pkgdir/usr/share/$pkgname"
34   cp -a samples "$pkgdir/usr/share/$pkgname"
36   # licenses
37   install -d "$pkgdir/usr/share/licenses/$pkgname"
38   cp -a LICENSE* "$pkgdir/usr/share/licenses/$pkgname"
40   # python2 fixes
41   sed -i 's/env python/&2/' `grep -rl "env python" "$pkgdir/"`