1 ##Maintainer: Dany Martineau <dany.luc.martineau at gmail.com>
7 pkgdesc="3D game about collecting mushrooms in outerspace"
9 url="http://funguloids.sourceforge.net/"
11 depends=('ogre' 'ois' 'freealut' 'lua' 'libogg' 'libvorbis' 'libmad')
12 source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-linux-${_realver}.tar.bz2
13 funguloids-alc_error.patch
14 funguloids-gcc44.patch
15 funguloids-ogre_1.6.patch funguloids-strcmp.patch
16 size_chunks_reverse.patch
19 openalsoundsystem.cpp.diff funguloids-ogre-1.7.0.patch)
20 md5sums=('1d9d92b08f58715d3dcb59c2ebcb7db7'
21 '2b5109816462308c4acb1d8f3521511b'
22 '8a183ffa27d468435106dc4417c58db1'
23 'a2442ec06c739095b81e4f282c26c70a'
24 '742ccc09463858d2c884cc348fed1f76'
25 'eff9c34af9dec07f51e11c16c5b478ff'
26 'a198e51d2a48f2eb0dcdc441a77de044'
27 '4c6a8c2c9042d24f16ac02d7041ba6e5'
28 '9d1b5f4d9bda39ea3dbbdc38cc9e484e'
29 '309a4993b2e5d8be07a892b7ed8e2259')
33 cd ${srcdir}/${pkgname}
34 patch -p0 < ../openalsoundsystem.cpp.diff
35 patch -p1 < ../funguloids-gcc44.patch
36 patch -p0 < ../funguloids-ogre_1.6.patch
37 patch -p0 < ../funguloids-strcmp.patch
38 patch -p0 < ../size_chunks_reverse.patch
39 patch -p0 < ../funguloids-lua.patch
40 /bin/cat ../funguloids-ogre-1.7.0.patch | /usr/bin/patch -s -p1
41 sed -i -e 's;cp bootstrap.mpk "@gameinstalldir@";cp bootstrap.mpk "$(DESTDIR)@gameinstalldir@";' -e 's;funguloids.mpk "@gameinstalldir@";funguloids.mpk "$(DESTDIR)@gameinstalldir@";' bin/Makefile.in
42 sed -i -e 's;cp MarylandInMay.ogg "@musicinstalldir@";cp MarylandInMay.ogg "$(DESTDIR)@musicinstalldir@";' bin/music/Makefile.in
43 sed -i -e 's;-llua5.1;-llua;' -e 's;share/games/funguloids;share/funguloids;' \
44 -e 's;bininstalldir="${prefix}/games;bininstalldir="${prefix}/bin;' configure.ac
46 ../mpak.py -e -f bin/bootstrap.mpk -p _bootstrap
47 ../mpak.py -e -f bin/funguloids.mpk -p _gamedata
48 sed -ri '/^[A-Z]/ s/(.*)/overlay \1/' _bootstrap/*.overlay _gamedata/*.overlay
49 sed -ri '/^[A-Z]/ s/(.*)/particle_system \1/' _gamedata/*.particle
50 sed -ri 's/^(\t\t\t)(texture_unit) 1/\1\2\n\1{\n\1}\n\1\2/' _gamedata/materials.material
51 ../mpak.py -c -f bin/bootstrap.mpk _bootstrap/*
52 ../mpak.py -c -f bin/funguloids.mpk _gamedata/*
53 rm -rf _bootstrap _gamedata
54 ./configure --prefix=/usr
56 make DESTDIR=${pkgdir} install