actions.py 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  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
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. i = "--enable-introspection \
  10. --enable-gtk-doc \
  11. --enable-gio-unix \
  12. --enable-vala=yes \
  13. --disable-debug \
  14. --enable-wayland \
  15. --disable-static \
  16. "
  17. def setup():
  18. pisitools.cflags.add("-Wno-deprecated-declarations")
  19. # windowmenu plugin: list width.
  20. pisitools.dosed("plugins/windowmenu/windowmenu.c", "24", "300")
  21. autotools.configure(i)
  22. pisitools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")
  23. def build():
  24. autotools.make()
  25. def install():
  26. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  27. #fixed whisker menu
  28. pisitools.dosed("%s/etc/xdg/xfce4/panel/default.xml" % get.installDIR(), "applicationsmenu", "whiskermenu")
  29. pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING*", "NEWS*")