actions.py 844 B

12345678910111213141516171819202122232425
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/licenses/gpl.txt
  5. from inary.actionsapi import get
  6. from inary.actionsapi import mesontools
  7. from inary.actionsapi import inarytools
  8. from inary.actionsapi import shelltools
  9. shelltools.system("export")
  10. def setup():
  11. #inarytools.dosed("configure.ac", "pthread-stubs", deleteLine=True)
  12. mesontools.meson_configure("--prefix=/usr -Dudev=true")
  13. def build():
  14. mesontools.ninja_build()
  15. def install():
  16. mesontools.ninja_install()
  17. if get.buildTYPE()=="emul32":
  18. shelltools.system("mkdir -p {}/usr/lib32".format(get.installDIR()))
  19. shelltools.system("mv {0}/usr/lib*.so* {0}/usr/lib32/".format(get.installDIR()))
  20. shelltools.system("mv {0}/usr/pkgconfig {0}/usr/lib32/".format(get.installDIR()))