summaryrefslogtreecommitdiff
path: root/community-staging/flightgear/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community-staging/flightgear/PKGBUILD')
-rw-r--r--community-staging/flightgear/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/community-staging/flightgear/PKGBUILD b/community-staging/flightgear/PKGBUILD
new file mode 100644
index 000000000..439e47c9c
--- /dev/null
+++ b/community-staging/flightgear/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 54030 2011-08-11 23:28:19Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer: William Rea <sillywilly@gmail.com>
+# Contributor: Hans Janssen <hans@janserv.xs4all.nl>
+
+pkgname=flightgear
+pkgver=2.4.0
+pkgrel=1
+pkgdesc="An open-source, multi-platform flight simulator"
+arch=(i686 x86_64)
+depends=('simgear' 'libxmu' 'libxi' 'zlib' 'openscenegraph' 'subversion') # 'flightgear-data')
+makedepends=('boost')
+license=("GPL")
+url="http://www.flightgear.org"
+options=('!makeflags')
+source=("$pkgname-$pkgver.tar.gz::https://gitorious.org/fg/flightgear/archive-tarball/release/$pkgver")
+md5sums=('eb8d1ed8b1de5f1ac7926c9d0c2f37f8')
+
+build() {
+ cd $srcdir/fg-flightgear
+# [ $NOEXTRACT -eq 1 ] || find -name \*.c\* -exec sed -i '1,2i#include <stdio.h>' {} \;
+# [ $NOEXTRACT -eq 1 ] || find -name \*.c\* -exec sed -i '1,2i#include <GL/glu.h>' {} \;
+ [ -x configure ] || ./autogen.sh
+ [ -f Makefile ] || ./configure --prefix=/usr
+ make
+}
+
+package() {
+ depends=('simgear' 'libxmu' 'libxi' 'zlib' 'openscenegraph' 'subversion' 'flightgear-data')
+ cd $srcdir/fg-flightgear
+ make DESTDIR=$pkgdir install
+}