actions.py 820 B

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/env python3
  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 inary.actionsapi import get
  7. from inary.actionsapi import autotools
  8. from inary.actionsapi import inarytools
  9. from inary.actionsapi import shelltools
  10. def build():
  11. shelltools.cd("libraries/liblmdb")
  12. autotools.make("prefix=/usr")
  13. def install():
  14. shelltools.cd("libraries/liblmdb")
  15. inarytools.dodir("/usr/bin")
  16. inarytools.dodir("/usr/lib")
  17. inarytools.dodir("/usr/man/man1")
  18. inarytools.dodir("/usr/share")
  19. inarytools.dodir("/usr/include")
  20. autotools.rawInstall("DESTDIR=%s prefix=/usr" % get.installDIR())
  21. inarytools.domove("/usr/man", "/usr/share")
  22. inarytools.dodoc("LICENSE", "CHANGES", "COPYRIGHT")