updated on Sat Jan 21 16:18:39 UTC 2012
[aur-mirror.git] / osgbullet-svn / PKGBUILD
blobf3e8a41be273aa58b8c6b9c5c2f80400617f1e55
1 # Maintainer: Marius Dransfeld <marius.dransfeld@googlemail.com>
3 pkgname=osgbullet-svn
4 pkgver=119
5 pkgrel=1
6 pkgdesc="osgBullet is a set of software tools for applications that use both OpenSceneGraph and Bullet"
7 arch=('i686' 'x86_64')
8 url="http://code.google.com/p/osgbullet/"
9 license=('LGPL')
10 groups=()
11 depends=('osgworks-svn' 'bullet')
12 makedepends=('subversion' 'cmake')
13 provides=(osgbullet)
14 conflicts=(osgbullet)
16 _svntrunk=http://osgbullet.googlecode.com/svn/trunk/
17 _svnmod=osgbullet
19 build() {
20   cd "$srcdir"
22   if [ -d $_svnmod/.svn ]; then
23     (cd $_svnmod && svn up -r $pkgver)
24   else
25     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
26   fi
28   msg "SVN checkout done or server timeout"
29   msg "Starting make..."
31   rm -rf "$srcdir/$_svnmod-build"
32   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
33   cd "$srcdir/$_svnmod-build"
35   #
36   # BUILD
37   #
38   cmake . -DCMAKE_BUILD_TYPE=Release  -DCMAKE_INSTALL_PREFIX=/usr
40   make
43 package() {
44   cd "$srcdir/$_svnmod-build"
45   make DESTDIR="$pkgdir/" install