actions.py 683 B

12345678910111213141516171819202122
  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. NoStrip = ["/opt"]
  8. IgnoreAutodep = True
  9. Version = get.srcVERSION()
  10. def setup():
  11. shelltools.system("pwd")
  12. shelltools.system("sed -i -e 's|^MS_PrintLicense$||g' TeamSpeak3-Client-linux_amd64-%s.run" % Version)
  13. shelltools.system("bash ./TeamSpeak3-Client-linux_amd64-%s.run --target opt/teamspeak3" % Version)
  14. def install():
  15. pisitools.insinto("/", "opt")
  16. pisitools.dosym("/opt/teamspeak3/ts3client_runscript.sh", "/usr/bin/ts3client_linux_amd64")