actions.py 766 B

123456789101112131415161718192021222324
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. from pisi.actionsapi import cmaketools
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. def setup():
  11. cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \
  12. -DCMAKE_INSTALL_LIBDIR=lib \
  13. -DFG_DATA_DIR=/usr/share/flightgear")
  14. def build():
  15. cmaketools.make()
  16. shelltools.system("sed -i 's|Exec=.*|Exec=fgfs --fg-root=/usr/share/flightgear/data|' package/flightgear.desktop")
  17. def install():
  18. cmaketools.install()
  19. pisitools.dodoc("README*", "ChangeLog", "AUTHORS", "NEWS", "Thanks")