diff options
author | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
commit | 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch) | |
tree | 03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/flightgear | |
parent | e445a313723389ba9ee1fded025c567dae5b21ea (diff) |
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/flightgear')
-rw-r--r-- | community/flightgear/PKGBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/community/flightgear/PKGBUILD b/community/flightgear/PKGBUILD new file mode 100644 index 000000000..5cd15184b --- /dev/null +++ b/community/flightgear/PKGBUILD @@ -0,0 +1,42 @@ +# $Id: PKGBUILD 92437 2013-06-05 11:05:37Z 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.10.0 +pkgrel=3 +pkgdesc="An open-source, multi-platform flight simulator" +arch=(i686 x86_64) +depends=('simgear' 'libxmu' 'libxi' 'zlib' 'openscenegraph' 'subversion' 'libxrandr' 'glu') +makedepends=('boost' 'cmake' 'mesa' 'sharutils') +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=('ae7fc8d1e446c5d1fe2aa82ee41dcac5') + +build() { + cd $srcdir/flightgear-$pkgver + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DFG_DATA_DIR:STRING="/usr/share/flightgear/data" . + uudecode -o package/flightgear.png package/flightgear.png.uue + make + sed -i 's|Exec=.*|Exec=fgfs --fg-root=/usr/share/flightgear/data|' package/flightgear.desktop +} + +package() { + depends=(${depends[@]} 'flightgear-data') + + cd $srcdir/flightgear-$pkgver + make DESTDIR=$pkgdir install + + install -Dm0644 package/flightgear.desktop $pkgdir/usr/share/applications/flightgear.desktop + install -Dm0644 package/flightgear.ico $pkgdir/usr/share/icons/flightgear.ico + install -Dm0644 package/flightgear.png $pkgdir/usr/share/icons/flightgear.png + ln -sf flightgear $pkgdir/usr/share/FlightGear +} |