actions.py 636 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 autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. t = ''.join([
  10. ' -prefix=/usr',
  11. ' -mandir=/usr/share/man',
  12. ' -with-system-zlib',
  13. ' -with-system-libpng '
  14. ])
  15. def setup():
  16. autotools.rawConfigure(t)
  17. def build():
  18. autotools.make()
  19. def install():
  20. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  21. pisitools.dohtml("doc/*.html")
  22. pisitools.dodoc("*.txt", "doc/history.txt", "doc/todo.txt")