actions.py 614 B

12345678910111213141516171819202122232425
  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 get
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. NoStrip = ["/usr", "/opt"]
  10. IgnoreAutodep = True
  11. Version = get.srcVERSION()
  12. def setup():
  13. shelltools.system("pwd")
  14. shelltools.system("ar xf wps-office_%s~*amd64.deb" % Version)
  15. shelltools.system("tar xf data.tar.xz")
  16. def install():
  17. pisitools.insinto("/", "usr")
  18. pisitools.insinto("/", "opt")
  19. pisitools.insinto("/", "etc")