actions.py 722 B

123456789101112131415161718192021222324
  1. #!/usr/bin/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 pisitools
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import get
  9. WorkDir = "."
  10. def install():
  11. pisitools.insinto("/usr/share/hunspell", "*.dic")
  12. pisitools.insinto("/usr/share/hunspell", "*.aff")
  13. shelltools.chmod("%s/usr/share/hunspell/*" % get.installDIR(), 0644)
  14. for lang in ("fr_BE", "fr_CA", "fr_CH", "fr_LU", "fr_MC"):
  15. pisitools.dosym("fr_FR.dic", "/usr/share/hunspell/%s.dic" % lang)
  16. pisitools.dosym("fr_FR.aff", "/usr/share/hunspell/%s.aff" % lang)
  17. pisitools.dodoc("README*")