actions.py 991 B

123456789101112131415161718192021222324252627282930313233
  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. i = "-Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-deprecated-declarations"
  11. def setup():
  12. pisitools.cflags.add(i)
  13. autotools.configure("--libexecdir=/usr/lib \
  14. --localstatedir=/var \
  15. --disable-static \
  16. --disable-dependency-tracking \
  17. --host=%s \
  18. --disable-debug" % get.CHOST())
  19. pisitools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
  20. def build():
  21. autotools.make()
  22. def install():
  23. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  24. pisitools.dodoc("AUTHORS", "COPYING", "NEWS", "README*")