actions.py 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. # Licensed under GNU General Public License, version 3.
  4. # See the file https://www.gnu.org/licenses/gpl.txt
  5. from pisi.actionsapi import autotools
  6. from pisi.actionsapi import pisitools
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import get
  9. MAKEFLAGS = 'GIT_COMMIT=f31d7c2 \
  10. DESTDIR=%(prefix)s/%(defaultprefix)s' % {
  11. 'prefix': get.installDIR(),
  12. 'defaultprefix': get.defaultprefixDIR(),
  13. }
  14. def build():
  15. autotools.make("-C lib")
  16. autotools.make("-C apfs-label %s" % MAKEFLAGS)
  17. autotools.make("-C apfs-snap %s" % MAKEFLAGS)
  18. autotools.make("-C apfsck %s" % MAKEFLAGS)
  19. autotools.make("-C mkapfs %s" % MAKEFLAGS)
  20. def install():
  21. autotools.install("-C apfs-label %s" % MAKEFLAGS)
  22. autotools.install("-C apfs-snap %s" % MAKEFLAGS)
  23. autotools.install("-C apfsck %s" % MAKEFLAGS)
  24. autotools.install("-C mkapfs %s" % MAKEFLAGS)
  25. pisitools.dodoc("LICENSE", "README*")