actions.py 794 B

123456789101112131415161718192021222324
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/copyleft/gpl.txt
  5. from pisi.actionsapi import get
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import pythonmodules
  10. def setup():
  11. shelltools.system("./requirements.sh")
  12. def build():
  13. shelltools.system("python3 setup.py build_ext --inplace")
  14. def install():
  15. pythonmodules.install(pyVer="3.4")
  16. pisitools.insinto("/usr/share/plasma/", "run_plasma.py")
  17. shelltools.chmod(get.installDIR() + "/usr/share/plasma/run_plasma.py", mode=0755)
  18. pisitools.dosym("/usr/share/plasma/run_plasma.py", "/usr/bin/plasma")
  19. pisitools.dodoc("LICENSE", "README*")