flightgear

This commit is contained in:
Rmys
2025-10-23 14:32:56 +03:00
parent 7ff23ef321
commit 0bed93fb74
2 changed files with 8 additions and 1 deletions
+6 -1
View File
@@ -10,8 +10,11 @@ from pisi.actionsapi import pisitools
from pisi.actionsapi import get from pisi.actionsapi import get
def setup(): 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 \ cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_DATADIR=/usr/share \
-DFG_DATA_DIR=/usr/share/flightgear") -DFG_DATA_DIR=/usr/share/flightgear")
def build(): def build():
@@ -19,5 +22,7 @@ def build():
def install(): def install():
cmaketools.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") pisitools.dodoc("README*", "ChangeLog", "AUTHORS", "NEWS", "Thanks")
+2
View File
@@ -75,10 +75,12 @@
<Path fileType="executable">/usr/bin</Path> <Path fileType="executable">/usr/bin</Path>
<Path fileType="data">/usr/share/pixmaps</Path> <Path fileType="data">/usr/share/pixmaps</Path>
<Path fileType="data">/usr/share/zsh</Path> <Path fileType="data">/usr/share/zsh</Path>
<Path fileType="data">/usr/share/icons</Path>
<Path fileType="data">/usr/share/icons/hicolor</Path> <Path fileType="data">/usr/share/icons/hicolor</Path>
<Path fileType="data">/usr/share/bash-completion/completions</Path> <Path fileType="data">/usr/share/bash-completion/completions</Path>
<Path fileType="data">/usr/share/flightgear/</Path> <Path fileType="data">/usr/share/flightgear/</Path>
<Path fileType="data">/usr/share/applications</Path> <Path fileType="data">/usr/share/applications</Path>
<Path fileType="data">/usr/share/metainfo</Path>
</Files> </Files>
<AdditionalFiles> <AdditionalFiles>
<AdditionalFile owner="root" permission="0644" target="/usr/share/pixmaps/flightgear.png">flightgear.png</AdditionalFile> <AdditionalFile owner="root" permission="0644" target="/usr/share/pixmaps/flightgear.png">flightgear.png</AdditionalFile>