actions.py 701 B

1234567891011121314151617181920212223
  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 shelltools
  7. from inary.actionsapi import autotools
  8. from inary.actionsapi import inarytools
  9. from inary.actionsapi import get
  10. def build():
  11. autotools.make("CC=%s CFLAGS='%s -fPIC' LDFLAGS='%s'" % (get.CC(), get.CFLAGS(), get.LDFLAGS()))
  12. def install():
  13. inarytools.dolib("libiniparser.so.1")
  14. inarytools.dosym("libiniparser.so.1", "/usr/lib/libiniparser.so")
  15. inarytools.dodir("/usr/include")
  16. inarytools.insinto("/usr/include", "src/*.h")
  17. inarytools.dodoc("README.md", "AUTHORS", "LICENSE")