actions.py 553 B

1234567891011121314151617181920
  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. import glob
  10. WorkDir="."
  11. def install():
  12. zemberekdir = "/usr/lib/libreoffice/share/extensions/zemberek-spell-checker"
  13. pisitools.dodir(zemberekdir)
  14. zemberekfile = glob.glob("*.oxt")[0]
  15. shelltools.system("unzip %s -d %s/%s" % (zemberekfile, get.installDIR(), zemberekdir))