actions.py 802 B

1234567891011121314151617181920212223
  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 autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. WorkDir = "JELVIS-git-master"
  11. def install():
  12. pisitools.insinto("/usr/bin", "./jelvis-assistant")
  13. pisitools.insinto("/usr/share/icons", "./icons/jelvis.png")
  14. pisitools.insinto("/usr/share/icons", "./icons/jelvis_try.png")
  15. pisitools.insinto("/usr/share/applications", "./jelvis.desktop")
  16. pisitools.insinto("/opt/jelvis", "./*")
  17. shelltools.system("chmod 00755 %s/opt/jelvis/*" % get.installDIR())
  18. shelltools.system("chmod 00755 %s/opt/jelvis/icons/*" % get.installDIR())