updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / ogitor-unstable-hg / PKGBUILD
blob83659142f59aed724f1939b5ef70ad0880a8c8d6
1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
2 pkgname=ogitor-unstable-hg
3 pkgver=10
4 pkgrel=1
5 pkgdesc="scene editing framework for Ogre3D"
6 arch=('i686' 'x86_64')
7 url='http://www.ogitor.org'
8 license=('LGPL')
9 depends=('ogre-hg' 'qt')
10 makedepends=('cmake' 'mercurial' 'unzip')
11 #optdepends=('cppunit: unit testing'
12 #            'doxygen: generate API docs')
13 conflicts=('ogitor')
14 provides=('ogitor')
15 source=(http://www.ogitor.org/media.zip
16         http://www.ogitor.org/projects.zip)
17 md5sums=('7aea54303184b0b239d6ccee26e15429'
18          '1274670ccd7ee47994898471e47de0c9')
20 _hgtrunk="http://hg.ogitor.org/development"
21 _hgmod="ogitor"
23 build() {
24   cd ${srcdir}
26   if [ -d $_hgmod/.hg ]; then
27     cd $_hgmod && hg pull -u
28   else
29     hg clone $_hgtrunk $_hgmod
30   fi
32   msg "Mercurial checkout done or server timeout"
33   msg "Starting make..."
35   cd ${srcdir}
36   if [ -d $_hgmod-build ]; then
37           rm -rf $_hgmod-build
38   fi
39   hg clone $_hgmod $_hgmod-build
40   cd $_hgmod-build
42   cd ${srcdir}/$_hgmod-build
44   unzip -d RunPath ${srcdir}/media.zip
45   unzip -d RunPath ${srcdir}/projects.zip
47   mkdir build && cd build
48   cmake .. -DCMAKE_INSTALL_PREFIX=/usr
49   make
50   make DESTDIR=${pkgdir} install