diff options
Diffstat (limited to 'community/flightgear')
-rw-r--r-- | community/flightgear/PKGBUILD | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/community/flightgear/PKGBUILD b/community/flightgear/PKGBUILD index b1fb51b41..cf9f8434c 100644 --- a/community/flightgear/PKGBUILD +++ b/community/flightgear/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 65321 2012-02-21 01:33:57Z spupykin $ +# $Id: PKGBUILD 70923 2012-05-19 18:42:10Z 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.6.0 -pkgrel=3 +pkgrel=4 pkgdesc="An open-source, multi-platform flight simulator" arch=(i686 x86_64) depends=('simgear' 'libxmu' 'libxi' 'zlib' 'openscenegraph' 'subversion') @@ -20,7 +20,11 @@ md5sums=('943f784f55c7e11ddce6082d2d1dbba4') build() { cd $srcdir/flightgear-$pkgver - cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib . + sed -i '1,1i#include <unistd.h>' utils/TerraSync/terrasync.cxx + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DFG_DATA_DIR:STRING="/usr/share/flightgear/data" . make sed -i 's|Exec=.*|Exec=fgfs --fg-root=/usr/share/flightgear/data|' package/flightgear.desktop } |