actions.py 726 B

12345678910111213141516171819202122232425262728293031323334
  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 shelltools
  9. from inary.actionsapi import get
  10. shelltools.export("LC_ALL", "C")
  11. def setup():
  12. autotools.rawConfigure('\
  13. --prefix=/usr \
  14. --sysconfdir=/etc \
  15. --localstatedir=/var \
  16. --libexecdir=/usr/lib/qemu \
  17. --smbd=/usr/bin/smbd \
  18. --enable-modules \
  19. --enable-sdl \
  20. --audio-drv-list="pa alsa sdl"')
  21. def build():
  22. autotools.make("-j1") # -j5 not good
  23. def install():
  24. autotools.rawInstall('DESTDIR="{}"'.format(get.installDIR()))