desktop/flightgear/PKGBUILD

52 lines
1.4 KiB
Bash
Raw Normal View History

2011-05-13 09:43:18 +08:00
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
pkgname=flightgear
_pkgname=FlightGear
2012-02-26 15:21:59 +08:00
pkgver=2.6.0
pkgrel=2
2011-05-13 09:43:18 +08:00
pkgdesc="An open-source, multi-platform flight simulator."
arch=(i686 x86_64)
depends=('libxmu' 'libxi' 'openal' 'openscenegraph' 'zlib' 'simgear' 'subversion')
2012-02-26 15:21:59 +08:00
makedepends=('boost' 'cmake')
optdepends=('flightgear-aircrafts: Additional aircrafts.')
license=(GPL3)
2011-05-13 09:43:18 +08:00
url="http://www.flightgear.org"
screenshot="http://www.flightgear.org/wp-content/gallery/gallery-v2-6/737-300_egkk_hom.jpg"
2012-03-07 19:00:46 +08:00
categories=('games')
2012-02-26 15:21:59 +08:00
source=(http://ftp.icm.edu.pl/packages/$pkgname/Source/$pkgname-$pkgver.tar.bz2)
sha256sums=('1554efbe20ad5002ad169225605ae95fca46d381bdff03dd624d92cf24b1a40f')
2011-05-13 09:43:18 +08:00
build() {
cd $srcdir/$pkgname-$pkgver
mkdir -p build
cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
..
2011-05-13 09:43:18 +08:00
make
}
package() {
depends=( "${depends[@]}" "flightgear-data" )
cd $srcdir/$pkgname-$pkgver/build
2011-05-13 09:43:18 +08:00
make DESTDIR=$pkgdir install
# Execution script.
echo "#!/bin/bash" > $pkgdir/usr/bin/$pkgname
echo "fgfs --fg-root=/usr/share/$pkgname/data \$@" >> $pkgdir/usr/bin/$pkgname
chmod +x $pkgdir/usr/bin/$pkgname
# Desktop Integration.
cd .. # From /build
install -Dm0644 package/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
install -Dm0644 package/RedHat/$pkgname.48.png $pkgdir/usr/share/icons/$pkgname.png
}