1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
2 pkgname=ogre-procedural-hg
5 pkgdesc="Procedural geometry for Ogre3D"
7 url="http://code.google.com/p/ogre-procedural/"
10 makedepends=('mercurial')
11 provides=('ogre-procedural')
12 conflicts=('ogre-procedural')
16 _hgroot="https://ogre-procedural.googlecode.com/hg"
17 _hgrepo="ogre-procedural"
21 msg "Connecting to Mercurial server...."
23 if [ -d $_hgrepo ] ; then
26 msg "The local files are updated."
28 hg clone $_hgroot $_hgrepo
31 msg "Mercurial checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf "$srcdir/$_hgrepo-build"
35 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
36 cd "$srcdir/$_hgrepo-build"
42 [[ -d build ]] && rm -r build
43 mkdir build && cd build
44 cmake -DCMAKE_INSTALL_PREFIX=/usr ..
49 cd "$srcdir/$_hgrepo-build"
52 make DESTDIR="$pkgdir/" install
54 mkdir "$pkgdir/usr/include/PROCEDURAL/"
55 mv "$pkgdir/usr/include/"*.h "$pkgdir/usr/include/PROCEDURAL/"
56 rm -r "$pkgdir/PROCEDURAL"