actions.py 728 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, autotools, pisitools, get
  7. j = ''.join([
  8. ' --disable-static',
  9. ' --without-webp',
  10. ' --enable-lefty',
  11. ' --enable-ocaml=no',
  12. ' --with-rsvg=yes',
  13. ' --disable-dependency-tracking '
  14. ])
  15. def setup():
  16. shelltools.export("LIBPOSTFIX", "/")
  17. shelltools.export("CONFIG_SHELL", "/bin/bash")
  18. autotools.configure(j)
  19. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  20. def build():
  21. autotools.make()
  22. def install():
  23. autotools.rawInstall("DESTDIR=%s" % get.installDIR())