updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / fgdata-git / PKGBUILD
blob21c41636408ab1b48551b350611b5b13cdb2a3df
1 # Contributor: Pascal Groschwitz <p.groschwitz@googlemail.com>
2 pkgname=fgdata-git
3 pkgver=20100723
4 pkgrel=1
5 pkgdesc="Base-Data for the opensource flight-simulator."
6 arch=('i686' 'x86_64')
7 url="http://www.flightgear.org"
8 license=('GPL')
9 depends=('glut' 'freealut' 'plib' 'openscenegraph-svn')
10 makedepends=('git')
11 provides=('fgdata')
12 conflicts=('flightgear-data')
13 source=()
14 md5sums=()
16 _gitroot="git://gitorious.org/fg/fgdata.git"
17 _gitname="fgdata"
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   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/
40