actions.py 800 B

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file https://www.gnu.org/licenses/gpl-3.0.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. WorkDir = "p7zip-%s" % get.srcVERSION()
  11. makefiles = { 'x86_64' : "makefile.linux_amd64_asm" }
  12. def setup():
  13. shelltools.copy(makefiles[get.ARCH()], "makefile.machine")
  14. def build():
  15. autotools.make('OPTFLAGS="%s %s" 7z 7za 7zr sfx' % (get.CFLAGS(), get.CXXFLAGS()))
  16. def check():
  17. autotools.make("test")
  18. autotools.make("test_7z")
  19. autotools.make("test_7zr")
  20. def install():
  21. autotools.rawInstall("DEST_DIR=%s DEST_HOME=/usr DEST_MAN=/usr/share/man" % get.installDIR())