1 # Contributor: David 'wornaki' Lemma <wornaki@gmail.com>
2 # Maintainer: mar77i <mysatyre at gmail dot com>
8 pkgdesc="A very high level 3D engine for Python"
9 url="http://home.gna.org/oomadness/en/soya"
10 arch=('i686' 'x86_64')
12 depends=('pyrex' 'pil' 'freetype2' 'sdl' 'cal3d' 'glew' 'editobj' 'ode' 'openal')
13 source=(http://download.gna.org/$_pkgname/${_pkgname^}-$pkgver.tar.bz2)
14 md5sums=('37c8db4e3003b3e65032f980ee29c36c')
17 # pyrex tries to package by directory name (failing on dots)...
18 [[ -d "$srcdir/$_pkgname" ]] && rm -r "$srcdir/$_pkgname"
19 [[ -d "$srcdir/${_pkgname^}-$pkgver" ]] && mv -Tu "$srcdir/${_pkgname^}-$pkgver" "$srcdir/$_pkgname"
20 cd "$srcdir/$_pkgname"
21 # cd "$srcdir/${_pkgname^}-$pkgver"
22 sed -i 's|/usr/local/include/cal3d|/usr/include/AL|' setup.py
23 sed -i 's|LIBS = \["m", "GLEW", "SDL", "freetype", "cal3d", "stdc++","ode"\]|LIBS = \["m", "GLEW", "SDL", "freetype", "cal3d", "stdc++","ode", "openal", "GL"\]|' setup.py
24 python2 setup.py install --root=$pkgdir