actions.py 982 B

12345678910111213141516171819202122232425262728
  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 pisitools
  7. from pisi.actionsapi import shelltools
  8. WorkDir= "./gcstar"
  9. def fixPermissions():
  10. import os
  11. for root, dirs, files in os.walk("%s/opt" % get.installDIR()):
  12. for d in dirs:
  13. shelltools.system("/bin/chmod 0755 %s/%s" % (root, d))
  14. for f in files:
  15. shelltools.system("/bin/chmod 0644 %s/%s" % (root, f))
  16. def install():
  17. shelltools.system("./install --prefix=%s/usr --noclean --nomenu --verbose" % get.installDIR())
  18. pisitools.insinto("/usr/", "bin")
  19. pisitools.insinto("/usr/", "lib")
  20. pisitools.insinto("/usr/share/", "man")
  21. pisitools.insinto("/usr/share", "share/applications")
  22. pisitools.insinto("/usr/share", "share/gcstar")
  23. pisitools.dodoc("CHANGELOG", "LICENSE", "README", "README.fr")