actions.py 635 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/copyleft/gpl.txt
  6. from pisi.actionsapi import pisitools, shelltools, get
  7. WorkDir = "."
  8. NoStrip = ["/"]
  9. def setup():
  10. shelltools.system("pwd")
  11. shelltools.system("ar xf scratch-desktop_%s_amd64.deb" % get.srcVERSION())
  12. shelltools.system("tar xf data.tar.xz")
  13. def install():
  14. pisitools.dodir ("/opt/scratch-desktop")
  15. pisitools.insinto("/opt/scratch-desktop", "usr/lib/scratch-desktop/*")
  16. pisitools.dosym("/opt/scratch-desktop/electron", "/usr/bin/scratch-desktop")