actions.py 868 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/python
  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 pisi.actionsapi import get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. suffix = "32" if get.buildTYPE() == "emul32" else ""
  10. bindir = "/tmp" if get.buildTYPE() == "emul32" else "/bin"
  11. def setup():
  12. autotools.rawConfigure("--libdir=/lib%s \
  13. --mandir=/usr/share/man \
  14. --libexecdir=/lib%s \
  15. --bindir=%s" % (suffix, suffix, bindir))
  16. def build():
  17. autotools.make()
  18. def install():
  19. autotools.make("DIST_ROOT=%s install install-lib install-dev" % get.installDIR())
  20. if get.buildTYPE() == "emul32":
  21. pisitools.removeDir("/tmp")
  22. pisitools.remove("/lib%s/libattr.a" % suffix)