actions.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. multilib = "--enable-multilib" if get.ARCH() == "x86_64" else ""
  11. def setup():
  12. autotools.configure('--enable-shared \
  13. --build=x86_64-pc-linux-gnu \
  14. --enable-threads \
  15. --enable-ld=default \
  16. --enable-gold \
  17. --enable-plugins \
  18. --with-pkgversion="Sulin" \
  19. --with-bugurl=http://gitlab.com/sulinos/main/issues \
  20. %s \
  21. --with-pic \
  22. --disable-werror' % ( multilib))
  23. def build():
  24. autotools.make("configure-host")
  25. autotools.make("tooldir=/usr")
  26. #def check():
  27. # autotools.make("check -j1")
  28. def install():
  29. autotools.rawInstall("tooldir=/usr DESTDIR=%s" % get.installDIR())