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
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")