actions.py 713 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env python
  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 pisi.actionsapi import pythonmodules
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import mesontools
  10. def setup():
  11. shelltools.system("grep -rl '^#!.*python$' | xargs sed -i '1s/python/&3/'")
  12. mesontools.configure()
  13. def build():
  14. mesontools.build()
  15. def install():
  16. mesontools.install()
  17. pisitools.dosym("/usr/share/icons/hicolor/scalable/apps/org.xfce.catfish.svg", "/usr/share/pixmaps/org.xfce.catfish.svg")
  18. pisitools.dodoc("AUTHORS", "COPYING", "NEWS", "README*")