actions.py 881 B

1234567891011121314151617181920212223242526272829303132
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Copyright 2017 TUBITAK/UEKAE
  5. # Licensed under the GNU General Public License, version 2.
  6. # See the file http://www.gnu.org/copyleft/gpl.txt.
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import shelltools
  10. from pisi.actionsapi import get
  11. def setup():
  12. shelltools.makedirs("build")
  13. shelltools.cd("build")
  14. shelltools.system("meson .. --prefix=/usr --sysconfdir=/etc --localstatedir=/var -Dsystemd=false -Dconsolekit=true -Dplugin_uefi_labels=false -Dplugin_thunderbolt=false -Dgtkdoc=false -Dman=false")
  15. def build():
  16. shelltools.cd("build")
  17. shelltools.system("ninja")
  18. def install():
  19. shelltools.cd("build")
  20. shelltools.system("DESTDIR=%s ninja install" % get.installDIR())
  21. #pisitools.dodoc("AUTHORS", "ChangeLog", "README*", "NEWS")