actions.py 611 B

12345678910111213141516171819202122
  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 shelltools
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. def build():
  11. shelltools.export("CFLAGS", "%s -fno-strict-aliasing" % get.CFLAGS())
  12. if get.ARCH() == "x86_64":
  13. autotools.make("BITS=64")
  14. else:
  15. autotools.make("BITS=32")
  16. def install():
  17. autotools.rawInstall('DESTDIR="%s"' % get.installDIR())
  18. pisitools.dodoc("changes.txt")