actions.py 588 B

123456789101112131415161718
  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 get, pisitools, shelltools
  7. Version = get.srcVERSION()
  8. def setup():
  9. shelltools.system("pwd")
  10. shelltools.system("ar xf GitHubDesktop-linux-amd64-"+Version+"-linux1.deb")
  11. shelltools.system("tar xf data.tar.xz")
  12. def install():
  13. pisitools.insinto("/opt/github-desktop/", "usr/lib/github-desktop/*")
  14. pisitools.dosym("/opt/github-desktop/github-desktop", "/usr/bin/github-desktop")