actions.py 916 B

1234567891011121314151617181920212223242526272829303132
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 2.
  5. # See the file http://www.gnu.org/copyleft/gpl.txt.
  6. from inary.actionsapi import autotools
  7. from inary.actionsapi import inarytools
  8. from inary.actionsapi import shelltools
  9. from inary.actionsapi import get
  10. #WorkDir="libindicator-12.10.2+14.04.20140402"
  11. def setup():
  12. shelltools.system("sed -i 's/-Werror//' {libindicator,tools}/Makefile.am")
  13. shelltools.system("autoreconf -fvi")
  14. autotools.configure("-prefix=/usr \
  15. --localstatedir=/var \
  16. --libexecdir=/usr/lib/libindicator \
  17. --sysconfdir=/etc \
  18. --with-gtk=3 \
  19. --disable-static \
  20. --disable-tests")
  21. shelltools.system("sed -i 's/-lglib-2.0-lm/-lglib-2.0 -lm/' {libindicator,tools}/Makefile")
  22. def build():
  23. autotools.make()
  24. def install():
  25. autotools.rawInstall("DESTDIR={}".format(get.installDIR()))