actions.py 679 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/licenses/gpl.txt
  6. from pisi.actionsapi import get, pisitools, shelltools
  7. NoStrip = ["/opt", "/usr"]
  8. IgnoreAutodep = True
  9. def setup():
  10. shelltools.system("pwd")
  11. shelltools.system("ar xf franz_5.0.0-beta.14_amd64.deb")
  12. shelltools.system("tar xf data.tar.xz")
  13. def install():
  14. pisitools.insinto("/", "usr")
  15. pisitools.insinto("/", "opt")
  16. pisitools.dosym("/opt/Franz/franz", "/usr/bin/franz")
  17. pisitools.dosym("/usr/share/icons/hicolor/1024x1024/apps/franz.png", "/usr/share/icons/hicolor/scalable/apps/franz.png")