actions.py 707 B

12345678910111213141516171819
  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","*")
  11. for i in [16,32,48,128,256]:
  12. pisitools.domove("/opt/sublime-text/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/Icon")
  14. pisitools.removeDir("/opt/sublime-text/lib")
  15. for i in ['-','_']:
  16. pisitools.dosym("/opt/sublime-text/sublime_text","/usr/bin/sublime%stext" % i)