actions.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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. def setup():
  11. #Change default xcursor
  12. #pisitools.dosed("schemas/org.mate.peripherals-mouse.gschema.xml.in", "<default>''</default>", "<default>'mate'</default>")
  13. pisitools.dosed("schemas/org.mate.background.gschema.xml.in", "backgrounds/mate/desktop/Stripes.png", "backgrounds/mate/nature/5.jpg")
  14. autotools.configure("--prefix=/usr \
  15. --with-x \
  16. --disable-static \
  17. --disable-schemas-compile \
  18. --disable-gtk-doc-html \
  19. --enable-introspection=yes \
  20. --enable-gtk-doc")
  21. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  22. def build():
  23. autotools.make()
  24. def install():
  25. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  26. pisitools.dodoc("README", "NEWS")