updated on Sun Jan 22 16:00:49 UTC 2012
[aur-mirror.git] / delta3d-svn / PKGBUILD
blob8d84179747bd4d1878179f596dfb1abc27f188bf
1 # Contributor: zoulnix <http://goo.gl/HQaP>
2 pkgname=delta3d-svn
3 pkgver=7446
4 pkgrel=1
5 pkgdesc="Game engine appropriate for a wide variety of modeling & simulation."
6 arch=('i686' 'x86_64')
7 url="http://delta3d.org/"
8 license=('LGPL')
9 depends=('cal3d' 'cegui-0.7' 'fltk' 'freealut' 'gdal' 'gnelib-svn' 'ode' \
10          'opendis-cpp' 'openscenegraph' 'plib' 'xerces-c')
11 makedepends=('cmake' 'gcc' 'make' 'pkg-config' 'subversion')
12 options=('!libtool')
13 provides=('delta3d')
14 conflicts=('delta3d')
15 source=()
16 md5sums=('')
18 _svnmod="delta3d"
19 _svntrunk="https://delta3d.svn.sourceforge.net/svnroot/delta3d/trunk/delta3d"
21 build() { 
22   cd ${srcdir}
24   #####
25   msg "Getting sources..."
26   if [ -d ${_svnmod}/.svn ]; then
27     cd ${_svnmod} && svn up -r ${pkgver}
28   else
29     svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
30     cd ${_svnmod}
31   fi
33   msg "SVN checkout done or server timeout"
34   msg "Starting make..."
35   #####
37   cmake . -DCMAKE_INSTALL_PREFIX=/usr \
38           -DGNE_LIBRARY=/usr/lib \
39           -DLIB_POSTFIX= \
40           -DBUILD_EXAMPLES=0 \
41           -DBUILD_DEMOS=0 \
42           -DBUILD_WITH_QT=0 || return 1
44   make || return 1
47 package() {
48   cd ${srcdir}/${_svnmod}
50   make DESTDIR=${pkgdir} install || return 1