actions.py 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 get, mesontools, pisitools, pythonmodules, shelltools
  7. #nemo-seahorse
  8. pkgs_meson = "nemo-python nemo-dropbox nemo-fileroller nemo-image-converter nemo-preview nemo-repairer nemo-share nemo-seahorse".split()
  9. pkgs_python = "nemo-audio-tab nemo-compare nemo-emblems nemo-media-columns nemo-pastebin nemo-terminal".split()
  10. def setup():
  11. for i in pkgs_meson:
  12. shelltools.cd(i)
  13. mesontools.configure("--libexecdir=/usr/share/%s" % i)
  14. shelltools.cd("..")
  15. def build():
  16. for i in pkgs_meson:
  17. shelltools.cd(i)
  18. mesontools.build()
  19. shelltools.cd("..")
  20. for i in pkgs_python:
  21. shelltools.cd(i)
  22. pythonmodules.compile(pyVer = '3')
  23. shelltools.cd("..")
  24. def install():
  25. for i in pkgs_meson:
  26. shelltools.cd(i)
  27. mesontools.install()
  28. shelltools.cd("..")
  29. for i in pkgs_python:
  30. shelltools.cd(i)
  31. pythonmodules.install(pyVer = '3')
  32. shelltools.cd("..")
  33. pisitools.removeDir("/usr/share/doc")
  34. pisitools.removeDir("/usr/lib/pkgconfig")