1 # Contributor: William Oliveira de Lagos <williamx64@gmail.com>
6 pkgdesc="A platform for game development and an alternative to DirectX"
8 url="http://opensourcecia.wordpress.com/zhockon"
11 depends=('sdl' 'openal' 'freealut' 'freeglut' 'mesa' 'python')
13 conflicts=(zhockon-svn)
14 source=(http://downloads.sourceforge.net/zhockon/zhockon_0.1.x/zhockon_$pkgver.src.tar.gz)
15 md5sums=('6e584de25def841c263c7e228c973eb8')
18 cd $srcdir/$pkgname.src/pymodules/pygame/
21 mv lib.linux-i686-2.6 pygame &> /dev/null
22 mv lib.linux-x86_64-2.6 pygame &> /dev/null
23 cp -Rp pygame ../../../euphoria/zhgame/
25 cd $srcdir/$pkgname.src/pymodules/pyopengl/
28 cp -Rp OpenGL ../../../../euphoria/zhgraphics/
30 cd $srcdir/$pkgname.src/pymodules/pyopenal/
32 cd build/lib.linux-i686-2.6 &> /dev/null
33 cd build/lib.linux-x86_64-2.6 &> /dev/null
34 cp -Rp * ../../../../euphoria/zhsound/
36 cd $srcdir/$pkgname.src/pymodules/PIL/
39 mv lib.linux-i686-2.6 PIL &> /dev/null
40 mv lib.linux-x86_64-2.6 PIL &> /dev/null
41 cp -Rp PIL ../../../euphoria/zhimage/
43 cd $srcdir/$pkgname.src/euphoria/
44 sed -i s/zopengl/OpenGL/g *.*
45 sed -i s/zopenal/pyopenal/g *.*
46 sed -i s/zimaging/PIL/g *.*
48 mkdir $pkgdir/opt; mkdir $pkgdir/opt/zhockon
49 cp -Rp $srcdir/$pkgname.src/* $pkgdir/opt/zhockon/