updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / flightgear-git / PKGBUILD
blob826f60355f4c98a36fd1b651bb3b3b839bc9dcc0
1 # Contributor: Pascal Groschwitz <p.groschwitz@googlemail.com>
2 pkgname=flightgear-git
3 pkgver=20100723
4 pkgrel=2
5 pkgdesc="An open-source, multi-platform flight simulator"
6 arch=('i686' 'x86_64')
7 url="http://flightgear.org/"
8 license=('GPL')
9 depends=('simgear-git' 'libxmu' 'libxi' 'zlib' 'fgdata-git' 'openscenegraph-svn')
10 optdepends=()
11 makedepends=('git' 'boost')
12 provides=('flightgear-git')
13 conflicts=('flightgear')
15 _gitroot="git://gitorious.org/fg/flightgear.git"
16 _gitname="flightgear"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf "$srcdir/$_gitname-build"
33   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34   cd "$srcdir/$_gitname-build"
36   ./autogen.sh
37   ./configure --prefix=/usr/
39   make || return 1
40   make DESTDIR="$pkgdir/" install
41