actions.py 977 B

123456789101112131415161718192021222324252627282930
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file https://www.gnu.org/licenses/gpl-3.0.txt
  6. from pisi.actionsapi import shelltools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. def build():
  10. # passed with --ignore-sandbox
  11. shelltools.cd("src")
  12. pisitools.dosed("fluid/dlg_search.fl", "Double\ resizable", "Double resizable modal")
  13. pisitools.dosed("OMakefile", "unroll-loops", "unroll-loops -fpermissive")
  14. for t in ["", "i18nupdate", "i18ncompile"]:
  15. shelltools.system("omake %s" % t)
  16. def install():
  17. shelltools.cd("src")
  18. shelltools.system("omake PREFIX=%s/usr install" % get.installDIR())
  19. for mo in ["de_DE/LC_MESSAGES", "sv_SE/LC_MESSAGES"]:
  20. shelltools.chmod("%s/usr/share/locale/%s/florb.mo" % (get.installDIR(), mo), mode = 0644)
  21. for i in ["florb.xpm", "res/florb.png", "res/florb.svg"]:
  22. pisitools.insinto("/usr/share/pixmaps", i)
  23. pisitools.dodoc("../LICENSE.txt")