FlighGear (and dependencies) added.

parent 87bd575c
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=flightgear
_pkgname=FlightGear
pkgver=2.0.0
pkgrel=1
pkgdesc="An open-source, multi-platform flight simulator."
arch=(i686 x86_64)
depends=('simgear' 'libxmu' 'libxi' 'zlib' 'openscenegraph' 'subversion')
makedepends=('boost')
license=("GPL")
url="http://www.flightgear.org"
options=('!makeflags')
source=("http://mirrors.ibiblio.org/pub/mirrors/$pkgname/ftp/Source/$_pkgname-$pkgver.tar.gz"
"http://mirrors.ibiblio.org/pub/mirrors/$pkgname/ftp/Shared/$_pkgname-data-$pkgver.tar.bz2")
md5sums=('549aa45171480082f5b6e5e8d5ce8930'
'85009e54cfd0cf74fd66fdd97c23ccd0')
build() {
cd $srcdir/$_pkgname-$pkgver
[ $NOEXTRACT -eq 1 ] || find -name \*.c\* -exec sed -i '1,2i#include <stdio.h>' {} \;
[ $NOEXTRACT -eq 1 ] || ./configure --prefix=/usr
make
}
package() {
cd $srcdir/$_pkgname-$pkgver
make DESTDIR=$pkgdir install
# Data.
mkdir -p $pkgdir/usr/share/$_pkgname
mv $srcdir/data $pkgdir/usr/share/$_pkgname
chown root.users $pkgdir/usr/share/$_pkgname/data
}
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=openscenegraph
_pkgname=OpenSceneGraph
pkgver=2.8.4
pkgrel=1
pkgdesc="FOSS high performance real-time graphics toolkit."
arch=('i686' 'x86_64')
license=('custom:OSGPL')
url="http://www.openscenegraph.org"
depends=('curl' 'ffmpeg' 'giflib' 'jasper' 'librsvg' 'pth' 'xine-lib')
makedepends=('cmake' 'libvncserver')
optdepends=('libvncserver' 'gdal' 'openexr' 'poppler-glib')
conflicts=('openthreads')
provides=('openthreads')
source=($url/downloads/stable_releases/$_pkgname-$pkgver/source/$_pkgname-$pkgver.zip)
md5sums=('283215b4040f7c5b85d30862a8eba97c')
build() {
cd $srcdir/$_pkgname-$pkgver
mkdir build && cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
..
make
}
package() {
cd $srcdir/$_pkgname-$pkgver/build
make DESTDIR=$pkgdir install
install -D -m644 ../LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=simgear
_pkgname=SimGear
pkgver=2.0.0
pkgrel=1
pkgdesc="FOSS libraries for quickly assembling 3D simulations."
arch=('i686' 'x86_64')
depends=('glut' 'freealut' 'plib' 'openscenegraph')
makedepends=('boost')
license=("GPL2")
url="http://www.simgear.org"
options=('!makeflags')
source=(ftp://mirrors.ibiblio.org/pub/mirrors/simgear/ftp/Source/$_pkgname-$pkgver.tar.gz)
md5sums=('414bea545ea1e8ce17e4aa0809159cec')
build() {
cd $srcdir/$_pkgname-$pkgver
./configure \
--prefix=/usr
make
}
package() {
cd $srcdir/$_pkgname-$pkgver
make DESTDIR=$pkgdir install
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment