1 # Contributor: Pascal Groschwitz <p.groschwitz@googlemail.com>
5 pkgdesc="Base-Data for the opensource flight-simulator."
7 url="http://www.flightgear.org"
9 depends=('glut' 'freealut' 'plib' 'openscenegraph-svn')
12 conflicts=('flightgear-data')
16 _gitroot="git://gitorious.org/fg/fgdata.git"
21 msg "Connecting to GIT server...."
23 if [ -d $_gitname ] ; then
24 cd $_gitname && git pull origin
25 msg "The local files are updated."
27 git clone $_gitroot $_gitname
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 mkdir -p $startdir/pkg/usr/share/FlightGear
38 mv * $startdir/pkg/usr/share/FlightGear || return 1
39 chown root.users $startdir/pkg/usr/share/FlightGear/