1 # Maintainer: Gunnar Kriik <gunnar.kriik@gmail.com>
4 pkgname=recastnavigation-svn
7 pkgdesc="Navigation-mesh Construction Toolset for Games"
9 url="http://code.google.com/p/recastnavigation"
13 makedepends=('subversion' 'cmake' 'sdl')
15 source=('cmake.patch')
16 md5sums=('e82b8e968a30eb5cf3f63bb50f2f9158')
18 _svntrunk="http://recastnavigation.googlecode.com/svn/trunk"
19 _svnmod=recastnavigation-svn
22 cd ${srcdir} || return 1
25 if [ -d ${_svnmod}/.svn ]; then
26 (cd ${_svnmod} && svn up)
28 svn co -r ${pkgver} ${_svntrunk} ${_svnmod}
33 # Patch that creates a set of CMake build files
34 patch -p1 < ../cmake.patch
35 mkdir build ; cd build/
37 # Build the libraries and the demo app
38 cmake .. ; make || return 1
40 # Create package directory structure
41 mkdir -p $pkgdir/usr/include
42 mkdir -p $pkgdir/usr/lib
43 mkdir -p $pkgdir/usr/share/recastnavigation
45 # Copy shared libraries
46 cp bin/libRecast.so $pkgdir/usr/lib
47 cp bin/libDetour.so $pkgdir/usr/lib
48 cp bin/libDebugUtils.so $pkgdir/usr/lib
51 cp ${srcdir}/${_svnmod}/Recast/Include/* $pkgdir/usr/include
52 cp ${srcdir}/${_svnmod}/Detour/Include/* $pkgdir/usr/include
53 cp ${srcdir}/${_svnmod}/DebugUtils/Include/* $pkgdir/usr/include
55 # Copy demo application to "/usr/share/recastnavigation"
56 mkdir -p $pkgdir/usr/share/recastnavigation
57 cp bin/RecastDemo $pkgdir/usr/share/recastnavigation
58 cp bin/DroidSans.ttf $pkgdir/usr/share/recastnavigation/DroidSans.ttf
59 cp bin/test.chf $pkgdir/usr/share/recastnavigation/test.chf
60 cp -R bin/Meshes $pkgdir/usr/share/recastnavigation/Meshes
61 cp -R bin/Tests $pkgdir/usr/share/recastnavigation/Tests