actions.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  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 autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. WorkDir = "igerman98-20161207"
  10. def build():
  11. autotools.make("hunspell/de_AT_small.dic hunspell/de_AT.aff hunspell/de_CH_small.dic hunspell/de_CH.aff hunspell/de_DE.aff")
  12. shelltools.cd("hunspell")
  13. for f in ("README_de_AT.txt", "README_de_CH.txt", "README_de_DE.txt"):
  14. pisitools.dosed(f, "\r")
  15. def install():
  16. shelltools.cd("hunspell")
  17. pisitools.insinto("/usr/share/hunspell", "*.dic")
  18. pisitools.insinto("/usr/share/hunspell", "*.aff")
  19. pisitools.dosym("de_DE.dic", "/usr/share/hunspell/de_BE.dic")
  20. pisitools.dosym("de_DE.aff", "/usr/share/hunspell/de_BE.aff")
  21. pisitools.dosym("de_DE.dic", "/usr/share/hunspell/de_LU.dic")
  22. pisitools.dosym("de_DE.aff", "/usr/share/hunspell/de_LU.aff")
  23. pisitools.dosym("de_CH.dic", "/usr/share/hunspell/de_LI.dic")
  24. pisitools.dosym("de_CH.aff", "/usr/share/hunspell/de_LI.aff")
  25. pisitools.dodoc("README*", "COPYING*")