Changes

Building Flightgear - CentOS

1,154 bytes added, 19 January
Add data
popd
rm -Rf -- "${FGFS_PREFIX}/src/fg_build/"
 
The data for Flightgear can be provided:
* as an official release that can be downloaded from [https://sourceforge.net/projects/flightgear/files/ here].
rm -f -- "${FGFS_PREFIX}/lib/FlightGear"
rm -Rf -- "${FGFS_PREFIX}/lib/FlightGear-${FLIGHTGEAR_VERSION}/"
mkdir --parents -- "${FGFS_PREFIX}/lib/FlightGear-${FLIGHTGEAR_VERSION}/"
pushd -- "${FGFS_PREFIX}/lib/FlightGear-${FLIGHTGEAR_VERSION}/"
tar axvf "${FGFS_PREFIX}/src/FlightGear-${FLIGHTGEAR_VERSION}-data.tar.bz2"
popd
pushd -- "${FGFS_PREFIX}/lib/"
ln --symbolic -- "FlightGear-${FLIGHTGEAR_VERSION}/fgdata/" FlightGear
popd
 
* as a clone of the Flightgear Git repo by using the following commands:
 
pushd -- "${FGFS_PREFIX}/lib64/"
git clone --depth 1 https://git.code.sf.net/p/flightgear/fgdata flightgear-fgdata
ln --symbolic -- "flightgear-fgdata/" FlightGear
popd
 
* if you have already a clone of the Flightgear Git repo, the local copy can be updated using the following commands:
 
pushd -- "${FGFS_PREFIX}/lib64/flightgear-fgdata/"
git pull
popd
 
= Start Flightgear =
 
cd -- "${FGFS_PREFIX}"
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${FGFS_PREFIX}/lib64
./bin/fgfs
85
edits