actions.py 769 B

123456789101112131415161718192021222324252627
  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. import os
  10. def setup():
  11. autotools.autoreconf("-vfi")
  12. autotools.configure("--prefix=/usr \
  13. --disable-dependency-tracking \
  14. --disable-static ")
  15. inarytools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  16. def build():
  17. autotools.make()
  18. def install():
  19. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  20. inarytools.dodoc("AUTHORS", "ChangeLog", "COPYING", "NEWS", "README", "THANKS", "TODO", "VERSION")