actions.py 845 B

12345678910111213141516171819202122232425262728293031
  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. def setup():
  8. autotools.autoreconf("-fiv")
  9. options = "--disable-static --with-pic"
  10. if get.buildTYPE()=="emul32":
  11. shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")
  12. options += "--libdir=/usr/lib32"
  13. autotools.configure(options)
  14. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  15. def build():
  16. autotools.make()
  17. def install():
  18. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  19. # unneeded empty manpages.
  20. pisitools.removeDir("/usr/share/man")
  21. if get.buildTYPE()=="emul32":
  22. pisitools.dodoc("AUTHORS", "NEWS", "THANKS")