actions.py 1.2 KB

1234567891011121314151617181920212223242526272829303132
  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 shelltools
  7. from pisi.actionsapi import get
  8. from pisi.actionsapi import autotools
  9. from pisi.actionsapi import pisitools
  10. from pisi.util import join_path
  11. from pisi.actionsapi import shelltools
  12. BASE_DIR = 'arc-themes/%s'
  13. ARC_DIR = BASE_DIR % 'Arc'
  14. ARC_SOLID_DIR = BASE_DIR % 'Arc-Solid'
  15. ARC_DARK_DIR = BASE_DIR % 'Arc-Dark'
  16. ARC_DARK_SOLID_DIR = BASE_DIR % 'Arc-Dark-Solid'
  17. def install():
  18. pisitools.dodir("/usr/share/themes/Arc")
  19. pisitools.dodir("/usr/share/themes/Arc-Solid")
  20. pisitools.dodir("/usr/share/themes/Arc-Dark")
  21. pisitools.dodir("/usr/share/themes/Arc-Dark-Solid")
  22. for sub_theme in ["gtk-2.0", "gtk-3.0", "metacity-1", "xfwm4", "cinnamon", "gnome-shell", "unity"]:
  23. pisitools.insinto("/usr/share/themes/Arc", join_path(ARC_DIR, sub_theme))
  24. pisitools.insinto("/usr/share/themes/Arc-Solid", join_path(ARC_SOLID_DIR, sub_theme))
  25. pisitools.insinto("/usr/share/themes/Arc-Dark", join_path(ARC_DARK_DIR, sub_theme))
  26. pisitools.insinto("/usr/share/themes/Arc-Dark-Solid", join_path(ARC_DARK_SOLID_DIR, sub_theme))