From 0bed93fb741826f279c4d7be22985f8d820414db Mon Sep 17 00:00:00 2001 From: Rmys Date: Thu, 23 Oct 2025 14:32:56 +0300 Subject: [PATCH] flightgear --- game/simulation/flightgear/actions.py | 7 ++++++- game/simulation/flightgear/pspec.xml | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/game/simulation/flightgear/actions.py b/game/simulation/flightgear/actions.py index 3423bcb852..14c920354a 100644 --- a/game/simulation/flightgear/actions.py +++ b/game/simulation/flightgear/actions.py @@ -10,8 +10,11 @@ from pisi.actionsapi import pisitools from pisi.actionsapi import get def setup(): + shelltools.system("sed -i 's|Exec=.*|Exec=fgfs --fg-root=/usr/share/flightgear/data|' package/org.flightgear.FlightGear.desktop.in") + cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_INSTALL_DATADIR=/usr/share \ -DFG_DATA_DIR=/usr/share/flightgear") def build(): @@ -19,5 +22,7 @@ def build(): def install(): cmaketools.install() - + + shelltools.copy("%s/usr/appdir/usr/share/*" % get.installDIR(), "%s/usr/share/" % get.installDIR()) + pisitools.removeDir("/usr/appdir") pisitools.dodoc("README*", "ChangeLog", "AUTHORS", "NEWS", "Thanks") diff --git a/game/simulation/flightgear/pspec.xml b/game/simulation/flightgear/pspec.xml index 25767f7140..71117a5633 100644 --- a/game/simulation/flightgear/pspec.xml +++ b/game/simulation/flightgear/pspec.xml @@ -75,10 +75,12 @@ /usr/bin /usr/share/pixmaps /usr/share/zsh + /usr/share/icons /usr/share/icons/hicolor /usr/share/bash-completion/completions /usr/share/flightgear/ /usr/share/applications + /usr/share/metainfo flightgear.png