updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / osgearth-git / PKGBUILD
blobad405099acfddaaed9f60595accef66480ce06ae
1 # Maintainer: A. Weiss <adam [at] archlinux.us>
3 pkgname=osgearth-git
4 pkgver=20110205
5 pkgrel=1
6 pkgdesc="A terrain rendering toolkit for OpenSceneGraph"
7 arch=('i686' 'x86_64')
8 url=('http://www.osgearth.org')
9 license=('LGPL')
10 depends=('openscenegraph-svn' 'gdal' 'expat' 'curl')
11 optdepends=('geos: Imrpoved vector support'
12             'sqlite: Flat file cache'
13             'libzip: Archive support')
14 makedepends=('git' 'cmake')
15 provides=('osgearth')
16 conflicts=('osgearth')
18 _gitroot='git://github.com/gwaldron/osgearth.git'
19 _gitname='osgearth'
21 build() {
23         cd $srcdir
25   msg "Connecting to $_gitname GIT server...."
27         if [[ -d $_gitname ]] ; then
28           cd $_gitname && git pull origin
29           msg "The local files are updated."
30         else
31           git clone $_gitroot
32         fi
34   msg "GIT checkout done or server timeout"
36         cd $srcdir
37         rm -rf build
38         mkdir -p build
39         cd build
41   msg "Starting make..."
43         cmake ../$_gitname \
44            -DCMAKE_INSTALL_PREFIX=/usr \
45            -DCMAKE_BUILD_TYPE=Release
46         make
49 package() {
50    cd build
51    make DESTDIR=$pkgdir install
52    mkdir -p $pkgdir/usr/share/osgearth
53    cp -r $srcdir/$_gitname/tests $pkgdir/usr/share/osgearth
54    cp -r $srcdir/$_gitname/data $pkgdir/usr/share/osgearth