summaryrefslogtreecommitdiff
path: root/community/flightgear
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-02-21 23:15:10 +0000
committerroot <root@rshg054.dnsready.net>2012-02-21 23:15:10 +0000
commit1f55cedf5ea357497d2a98eb2be78d8dab4a9665 (patch)
tree5e44ad19f2672ee92283377c9fe6eab3c8a815d7 /community/flightgear
parent11484c032f8c236b2044e715a9a3b28e33f65598 (diff)
Tue Feb 21 23:15:10 UTC 2012
Diffstat (limited to 'community/flightgear')
-rw-r--r--community/flightgear/PKGBUILD29
1 files changed, 16 insertions, 13 deletions
diff --git a/community/flightgear/PKGBUILD b/community/flightgear/PKGBUILD
index 439e47c9c..b1fb51b41 100644
--- a/community/flightgear/PKGBUILD
+++ b/community/flightgear/PKGBUILD
@@ -1,32 +1,35 @@
-# $Id: PKGBUILD 54030 2011-08-11 23:28:19Z spupykin $
+# $Id: PKGBUILD 65321 2012-02-21 01:33:57Z 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
+pkgver=2.6.0
+pkgrel=3
pkgdesc="An open-source, multi-platform flight simulator"
arch=(i686 x86_64)
-depends=('simgear' 'libxmu' 'libxi' 'zlib' 'openscenegraph' 'subversion') # 'flightgear-data')
-makedepends=('boost')
+depends=('simgear' 'libxmu' 'libxi' 'zlib' 'openscenegraph' 'subversion')
+makedepends=('boost' 'cmake')
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')
+#source=("$pkgname-$pkgver.tar.gz::https://gitorious.org/fg/flightgear/archive-tarball/release/$pkgver")
+#source=("ftp://ftp.de.flightgear.org/pub/fgfs/Source/flightgear-$pkgver.tar.bz2")
+source=("http://mirrors.ibiblio.org/pub/mirrors/flightgear/ftp/Source/flightgear-$pkgver.tar.bz2")
+md5sums=('943f784f55c7e11ddce6082d2d1dbba4')
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
+ cd $srcdir/flightgear-$pkgver
+ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib .
make
+ sed -i 's|Exec=.*|Exec=fgfs --fg-root=/usr/share/flightgear/data|' package/flightgear.desktop
}
package() {
depends=('simgear' 'libxmu' 'libxi' 'zlib' 'openscenegraph' 'subversion' 'flightgear-data')
- cd $srcdir/fg-flightgear
+ cd $srcdir/flightgear-$pkgver
make DESTDIR=$pkgdir install
+ install -Dm0644 package/flightgear.desktop $pkgdir//usr/share/applications/flightgear.desktop
+ install -Dm0644 package/RedHat/flightgear.48.png $pkgdir/usr/share/icons/flightgear.png
+ ln -sf flightgear $pkgdir/usr/share/FlightGear
}