actions.py 680 B

123456789101112131415161718192021222324252627282930
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file https://www.gnu.org/licenses/gpl-3.0.txt
  6. from pisi.actionsapi import shelltools
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. j = ''.join([
  11. ' --enable-vte',
  12. ' --with-python-command=python3',
  13. ' --disable-static '
  14. ])
  15. def setup():
  16. shelltools.export("PYTHON", "/usr/bin/python3")
  17. autotools.configure(j)
  18. pisitools.dosed("libtool", " -shared ", " -Wl,-O2,--as-needed -shared ")
  19. def build():
  20. autotools.make()
  21. def install():
  22. autotools.rawInstall("DESTDIR=%s" % get.installDIR())