actions.py 767 B

123456789101112131415161718192021222324252627282930313233343536
  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 autotools, pisitools, get
  7. t = ''.join([
  8. 'netstatus ',
  9. 'netstat ',
  10. 'volume ',
  11. 'deskno ',
  12. 'kbled ',
  13. 'batt ',
  14. 'xkb ',
  15. 'cpufreq ',
  16. 'monitors ',
  17. 'indicator'
  18. ])
  19. def setup():
  20. pisitools.cflags.add("-fcommon -Wno-deprecated-declarations")
  21. autotools.configure("--enable-gtk3 --with-plugins='%s'" % t)
  22. pisitools.dosed("libtool", " -shared ", " -Wl,-O2,--as-needed -shared ")
  23. def build():
  24. autotools.make()
  25. def install():
  26. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  27. pisitools.dodoc("AUTHORS", "ChangeLog", "README", "TODO")