actions.py 1.1 KB

12345678910111213141516171819202122232425
  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 pythonmodules
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. def build():
  11. pythonmodules.compile()
  12. def install():
  13. pythonmodules.install()
  14. for lc in shelltools.ls("po/*.po"): pisitools.domo(lc, lc[3:-3], 'bleachbit.mo')
  15. shelltools.chmod('%s/usr/lib/python2.7/site-packages/bleachbit/CLI.py' % get.installDIR(), mode = 0755)
  16. pisitools.dosym('/usr/lib/python2.7/site-packages/bleachbit/CLI.py', '/usr/bin/bleachbit_cli')
  17. shelltools.chmod('%s/usr/lib/python2.7/site-packages/bleachbit/GUI.py' % get.installDIR(), mode = 0755)
  18. pisitools.dosym('/usr/lib/python2.7/site-packages/bleachbit/GUI.py', '/usr/bin/bleachbit')
  19. pisitools.insinto('/usr/share/applications/', 'bleachbit.desktop')
  20. pisitools.insinto('/usr/share/pixmaps/', 'bleachbit.png')
  21. pisitools.insinto('/usr/share/bleachbit/cleaners', 'cleaners/*.xml')