updated on Tue Jan 10 00:10:07 UTC 2012
[aur-mirror.git] / simgear-git / PKGBUILD
blobaa546b82c502f7f7e321a1df64e2edc1961540d3
1 # Maintainer: Pascal <p.groschwitz@googlemail.com>
2 # Contributor: Pascal Groschwitz <p.groschwitz@googlemail.com>
3 pkgname=simgear-git
4 pkgver=20110905
5 pkgrel=1
6 pkgdesc="A set of open-source libraries designed to be used as building blocks for quickly assembling 3d simulations, games, and visualization applications."
7 arch=('i686' 'x86_64')
8 url="http://simgear.sourceforge.net/"
9 license=('GPL')
10 depends=('glut' 'freealut' 'plib' 'openscenegraph-svn' 'boost>=1.37')
11 optdepends=()
12 makedepends=('git')
13 provides=('simgear-git')
14 conflicts=('simgear')
16 _gitroot="git://gitorious.org/fg/simgear.git"
17 _gitname="simgear"
19 build() {
20   cd "$srcdir"
21   msg "Connecting to GIT server...."
23   if [ -d $_gitname ] ; then
24     cd $_gitname && git pull origin
25     msg "The local files are updated."
26   else
27     git clone $_gitroot $_gitname
28   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting make..."
33   rm -rf "$srcdir/$_gitname-build"
34   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35   cd "$srcdir/$_gitname-build"
37   ./autogen.sh
38   ./configure --prefix=/usr/
40   make || return 1
41   make DESTDIR="$pkgdir/" install
42