actions.py 912 B

1234567891011121314151617181920212223242526272829303132
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Copyright 2018 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.system("NOCONFIGURE=1 ./autogen.sh")
  13. autotools.configure("--with-priv-mode=setuid \
  14. --enable-xauth \
  15. --with-system-bubblewrap \
  16. --enable-docbook-docs \
  17. --enable-sandboxed-triggers")
  18. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  19. def build():
  20. autotools.make()
  21. def install():
  22. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  23. #pisitools.dodoc("AUTHORS", "ChangeLog", "README*", "NEWS")