actions.py 790 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
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. j = "-Wno-unused-but-set-variable \
  11. -Wno-unused-result \
  12. -Wno-deprecated-declarations \
  13. -Wno-stringop-truncation \
  14. "
  15. def setup():
  16. # suppress compiler warnings
  17. pisitools.cflags.add(j)
  18. shelltools.export("OPTIMIZER", get.CFLAGS())
  19. shelltools.export("DEBUG", "-DNDEBUG")
  20. autotools.configure("--sbindir=/usr/sbin --disable-static")
  21. def build():
  22. autotools.make()
  23. def install():
  24. autotools.rawInstall('DIST_ROOT="%s"' % get.installDIR())