Upgraded FlightGear to its latest version, 2.4.0. Also upgraded...

Upgraded FlightGear to its latest version, 2.4.0. Also upgraded OpenSceneGraph, to 3.0.1, SimGear to 2.4.0, separated FlightGear in binary and data files, and added an extra package including 2 GiB of aircrafts (maybe too many).
parent b9913739
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
pkgname=flightgear-aircrafts
_pkgname=Aircraft
_pkgname2=flightgear
pkgver=2.4
pkgrel=1
pkgdesc="A collection of aircrafts for FlightGear."
url="http://www.flightgear.org/Downloads/aircraft-2.0.0/"
license="custom:unknown"
arch=(any)
depends=('flightgear' 'flightgear-data')
makedepends=('unzip')
package() {
cd $srcdir
mkdir -p $pkgdir/usr/share/$_pkgname2/data/$_pkgname
# Download files.
URLS="ftp://flightgear.wo0t.de/$_pkgname2-ftp/ftp/$_pkgname-$pkgver
ftp://ftp.de.$_pkgname2.org/pub/fgfs/$_pkgname-$pkgver
ftp://ftp.goflyflightgear.com/$_pkgname2/$_pkgname-$pkgver
ftp://ftp.igh.cnrs.fr/pub/$_pkgname2/ftp/$_pkgname-$pkgver
ftp://ftp.kingmont.com/flightsims/$_pkgname2/$_pkgname-$pkgver
ftp://ftp.linux.kiev.ua/pub/fgfs/$_pkgname-$pkgver
ftp://mirrors.ibiblio.org/pub/mirrors/$_pkgname2/ftp/$_pkgname-$pkgver"
for URL in $URLS
do
wget -r -nd -nc $URL | true
done
# Uncompress files.
unzip '*.zip' -d $pkgdir/usr/share/flightgear/data/Aircraft/ || true
}
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
pkgname=flightgear-data
_pkgname=flightgear
_pkgname2=FlightGear
pkgver=2.4.0
pkgrel=1
pkgdesc="FlightGear base data."
arch=(any)
license=(GPL3)
url=http://www.flightgear.org
source=(ftp://ftp.goflyflightgear.com/$_pkgname/Shared/$_pkgname2-data-$pkgver.tar.bz2)
md5sums=('fea4d52b4197bae58ce2b6a5ddbc5659')
package() {
mkdir -p $pkgdir/usr/share/$_pkgname
mv $srcdir/data $pkgdir/usr/share/$_pkgname
chown root:users $pkgdir/usr/share/$_pkgname/data
}
...@@ -3,40 +3,32 @@ ...@@ -3,40 +3,32 @@
# #
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com> # Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=flightgear pkgname=flightgear
_pkgname=FlightGear _pkgname=FlightGear
pkgver=2.0.0 pkgver=2.4.0
pkgrel=1 pkgrel=1
pkgdesc="An open-source, multi-platform flight simulator." pkgdesc="An open-source, multi-platform flight simulator."
arch=(i686 x86_64) arch=(i686 x86_64)
depends=('simgear' 'libxmu' 'libxi' 'zlib' 'openscenegraph' 'subversion') depends=('flightgear-data' 'freealut' 'openal' 'openscenegraph' 'ptlib' 'simgear')
makedepends=('boost') makedepends=('boost')
license=("GPL") license=(GPL3)
url="http://www.flightgear.org" url="http://www.flightgear.org"
options=('!makeflags') source=(ftp://ftp.goflyflightgear.com/$pkgname/Source/$pkgname-$pkgver.tar.bz2)
source=("http://mirrors.ibiblio.org/pub/mirrors/$pkgname/ftp/Source/$_pkgname-$pkgver.tar.gz" md5sums=('e6e1f8b1def24326fa64ff001e195da7')
"http://mirrors.ibiblio.org/pub/mirrors/$pkgname/ftp/Shared/$_pkgname-data-$pkgver.tar.bz2")
md5sums=('549aa45171480082f5b6e5e8d5ce8930'
'85009e54cfd0cf74fd66fdd97c23ccd0')
build() { build() {
cd $srcdir/$_pkgname-$pkgver cd $srcdir/$pkgname-$pkgver
./configure \
[ $NOEXTRACT -eq 1 ] || find -name \*.c\* -exec sed -i '1,2i#include <stdio.h>' {} \; --prefix=/usr
[ $NOEXTRACT -eq 1 ] || ./configure --prefix=/usr
make make
} }
package() { package() {
cd $srcdir/$_pkgname-$pkgver cd $srcdir/$pkgname-$pkgver
make DESTDIR=$pkgdir install make DESTDIR=$pkgdir install
# Data. # Execution script.
mkdir -p $pkgdir/usr/share/$_pkgname echo "#!/bin/bash" > $pkgdir/usr/bin/$pkgname
mv $srcdir/data $pkgdir/usr/share/$_pkgname echo "fgfs \$@" >> $pkgdir/usr/bin/$pkgname
chown root.users $pkgdir/usr/share/$_pkgname/data chmod +x $pkgdir/usr/bin/$pkgname
} }
...@@ -3,31 +3,27 @@ ...@@ -3,31 +3,27 @@
# #
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com> # Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=openscenegraph pkgname=openscenegraph
_pkgname=OpenSceneGraph _pkgname=OpenSceneGraph
pkgver=2.8.4 pkgver=3.0.1
pkgrel=1 pkgrel=1
pkgdesc="FOSS high performance real-time graphics toolkit." pkgdesc="FOSS high performance real-time graphics toolkit."
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
license=('custom:OSGPL') license=('custom:OSGPL')
url="http://www.openscenegraph.org" url="http://www.openscenegraph.org"
depends=('curl' 'ffmpeg' 'giflib' 'jasper' 'librsvg' 'pth' 'xine-lib') depends=('curl' 'giflib' 'jasper' 'librsvg' 'pth' 'xine-lib')
makedepends=('cmake' 'libvncserver') makedepends=('cmake' 'libvncserver')
optdepends=('libvncserver' 'gdal' 'openexr' 'poppler-glib') optdepends=('libvncserver' 'gdal' 'openexr' 'poppler-glib')
conflicts=('openthreads')
provides=('openthreads')
source=($url/downloads/stable_releases/$_pkgname-$pkgver/source/$_pkgname-$pkgver.zip) source=($url/downloads/stable_releases/$_pkgname-$pkgver/source/$_pkgname-$pkgver.zip)
md5sums=('283215b4040f7c5b85d30862a8eba97c') md5sums=('c43a25d023e635c3566b2083d8e6d956')
build() { build() {
cd $srcdir/$_pkgname-$pkgver cd $srcdir/$_pkgname-$pkgver
# Using “Release” instead of “RelWithDebInfo” on purpose, else there are problems.
mkdir build && cd build mkdir build && cd build
cmake \ cmake \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_BUILD_TYPE=Release \
.. ..
make make
} }
...@@ -35,5 +31,10 @@ build() { ...@@ -35,5 +31,10 @@ build() {
package() { package() {
cd $srcdir/$_pkgname-$pkgver/build cd $srcdir/$_pkgname-$pkgver/build
make DESTDIR=$pkgdir install make DESTDIR=$pkgdir install
install -D -m644 ../LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
# Fix installation directory.
[ -d $pkgdir/usr/lib64 ] && mv $pkgdir/usr/lib64 $pkgdir/usr/lib || true
# License.
install -D -m644 ../LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/license.txt
} }
...@@ -3,31 +3,28 @@ ...@@ -3,31 +3,28 @@
# #
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com> # Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=simgear pkgname=simgear
_pkgname=SimGear _pkgname=SimGear
pkgver=2.0.0 pkgver=2.4.0
pkgrel=1 pkgrel=1
pkgdesc="FOSS libraries for quickly assembling 3D simulations." pkgdesc="FOSS libraries for quickly assembling 3D simulations."
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
depends=('glut' 'freealut' 'plib' 'openscenegraph') depends=('glut' 'freealut' 'plib' 'openscenegraph' 'zlib')
makedepends=('boost') makedepends=('boost')
license=("GPL2") license=("GPL2")
url="http://www.simgear.org" url=http://www.flightgear.org/
options=('!makeflags') options=('!makeflags')
source=(ftp://mirrors.ibiblio.org/pub/mirrors/simgear/ftp/Source/$_pkgname-$pkgver.tar.gz) source=(ftp://ftp.goflyflightgear.com/$pkgname/Source/$pkgname-$pkgver.tar.bz2)
md5sums=('414bea545ea1e8ce17e4aa0809159cec') md5sums=('31f4ce7254a43229f050a8f86d6966ef')
build() { build() {
cd $srcdir/$_pkgname-$pkgver cd $srcdir/$pkgname-$pkgver
./configure \ ./configure \
--prefix=/usr --prefix=/usr
make make
} }
package() { package() {
cd $srcdir/$_pkgname-$pkgver cd $srcdir/$pkgname-$pkgver
make DESTDIR=$pkgdir install 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