actions.py 1.1 KB

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/copyleft/gpl.txt
  5. from pisi.actionsapi import shelltools
  6. from pisi.actionsapi import get
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import autotools
  9. Workdir="."
  10. #def setup():
  11. #autotools.configure("--disable-static")
  12. #def build():
  13. #autotools.make()
  14. def install():
  15. pisitools.dodir("/usr/bin")
  16. pisitools.dodir("/usr/lib/zotero")
  17. #pisitools.dosed("run-zotero.sh", "MOZ_PROGRAM=", "MOZ_PROGRAM=/usr/lib/zotero/zotero")
  18. pisitools.insinto("/usr/lib/zotero/", "*")
  19. pisitools.dosym("/usr/lib/zotero/zotero", "/usr/bin/zotero")
  20. #Zotero_linux-x86_64
  21. # Copy zotero icons to a standard location
  22. pisitools.domove("/usr/lib/zotero/chrome/icons/default/default16.png", "/usr/share/icons/hicolor/16x16/apps/zotero.png")
  23. pisitools.domove("/usr/lib/zotero/chrome/icons/default/default32.png", "/usr/share/icons/hicolor/32x32/apps/zotero.png")
  24. pisitools.domove("/usr/lib/zotero/chrome/icons/default/default48.png", "/usr/share/icons/hicolor/48x48/apps/zotero.png")