actions.py 648 B

12345678910111213141516171819202122
  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. WorkDir = "."
  10. def setup():
  11. shelltools.system("rpm2targz -v %s/download-linux-fedora" %get.workDIR())
  12. shelltools.system("tar xfvz %s/download-linux-fedora.tar.gz" %get.workDIR())
  13. def install():
  14. pisitools.insinto("/opt/", "./opt/*")
  15. pisitools.insinto("/var/", "./var/*")
  16. pisitools.dohtml("%s/opt/dassault-systemes/DraftSight/Eula/english/*.htm" %get.workDIR())