diff options
author | root <root@rshg054.dnsready.net> | 2012-05-28 17:43:57 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-05-28 17:43:57 +0000 |
commit | 483f7de4ab6a706517279a24d2efc969f4a1996d (patch) | |
tree | 128a7513d3e42c4d8812b5fd11a4afb116399762 /community-testing/flightgear/PKGBUILD | |
parent | 89dd7b5f30d48c708092a71b1c8285090fe91505 (diff) |
Mon May 28 17:43:57 UTC 2012
Diffstat (limited to 'community-testing/flightgear/PKGBUILD')
-rw-r--r-- | community-testing/flightgear/PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/community-testing/flightgear/PKGBUILD b/community-testing/flightgear/PKGBUILD new file mode 100644 index 000000000..27d921c0a --- /dev/null +++ b/community-testing/flightgear/PKGBUILD @@ -0,0 +1,39 @@ +# $Id: PKGBUILD 71490 2012-05-27 13:14:35Z dreisner $ +# 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=5 +pkgdesc="An open-source, multi-platform flight simulator" +arch=(i686 x86_64) +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") +#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/flightgear-$pkgver + 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 +} + +package() { + depends=('simgear' 'libxmu' 'libxi' 'zlib' 'openscenegraph' 'subversion' 'flightgear-data') + 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 +} |