actions.py 680 B

123456789101112131415161718
  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 get
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. def install():
  10. pisitools.insinto("/opt/sublime_text_3","*")
  11. for i in [16,32,48,128,256]:
  12. pisitools.domove("/opt/sublime_text_3/Icon/{0}x{0}/sublime-text.png".format(i),"/usr/share/icons/hicolor/{0}x{0}/apps".format(i))
  13. pisitools.removeDir("/opt/sublime_text_3/Icon")
  14. for i in ['-','_']:
  15. pisitools.dosym("/opt/sublime_text_3/sublime_text","/usr/bin/sublime%stext_3" % i)