actions.py 915 B

12345678910111213141516171819202122232425262728293031
  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 autotools
  8. NoStrip = "/"
  9. def setup():
  10. # For gutenprint printers, use gutenprint-ijs-simplified.5.2
  11. #pisitools.dosed("db/source/printer/*.xml", ">gutenprint<", ">gutenprint-ijs-simplified.5.2<")
  12. autotools.configure()
  13. # Cleanup conflicts
  14. #shelltools.cd("db/source")
  15. #shelltools.system("../../cleanup-conflicts")
  16. def install():
  17. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  18. # Fix permissions
  19. #for root, dirs, files in os.walk("%s/usr/share/foomatic/db" % get.installDIR()):
  20. # for name in dirs:
  21. # shelltools.chmod(os.path.join(root, name), 0755)
  22. # for name in files:
  23. # shelltools.chmod(os.path.join(root, name), 0644)