actions.py 705 B

12345678910111213141516171819202122232425262728293031
  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 autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. WorkDir = "%s+-%s" % (get.srcNAME(), get.srcVERSION())
  10. docompile = False if get.ARCH() == "x86_64" else True
  11. def setup():
  12. pisitools.dosed("memtest.lds", "0x5000", "0x100000")
  13. def build():
  14. if docompile:
  15. autotools.make()
  16. def install():
  17. if docompile:
  18. finalbin = "memtest.bin"
  19. else:
  20. finalbin = "precomp.bin"
  21. pisitools.insinto("/boot", finalbin, "memtest")
  22. pisitools.dodoc("FAQ", "README*")