actions.py 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. from inary.actionsapi import autotools
  7. from inary.actionsapi import inarytools
  8. from inary.actionsapi import get
  9. def build():
  10. autotools.make("CC='%s %s' CFLAGS='%s'" % (get.CC(),"-m32 " if get.buildTYPE() == "emul32" else "-m64" ,get.CFLAGS()))
  11. def install():
  12. destDir="/usr/lib32" if get.buildTYPE() == "emul32" else "/usr/lib"
  13. inarytools.dolib("libjbig/libjbig.a", destinationDirectory = destDir, mode=755)
  14. inarytools.dolib("libjbig/libjbig85.a", destinationDirectory = destDir, mode=755)
  15. inarytools.insinto("/usr/include", "libjbig/jbig.h")
  16. inarytools.insinto("/usr/include", "libjbig/jbig_ar.h")
  17. inarytools.insinto("/usr/include", "libjbig/jbig85.h")
  18. if get.buildTYPE() == "emul32":
  19. inarytools.dobin("pbmtools/jbgtopbm")
  20. inarytools.dobin("pbmtools/pbmtojbg")
  21. inarytools.dobin("pbmtools/jbgtopbm85")
  22. inarytools.dobin("pbmtools/pbmtojbg85")
  23. inarytools.doman("pbmtools/jbgtopbm.1", "pbmtools/pbmtojbg.1")
  24. inarytools.dodoc("ANNOUNCE", "CHANGES", "COPYING", "TODO")