actions.py 1.1 KB

12345678910111213141516171819202122232425
  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 install():
  11. pisitools.dodir("/usr/bin")
  12. pisitools.dodir("/usr/lib/zotero")
  13. pisitools.insinto("/usr/lib/zotero/", "*")
  14. pisitools.dosym("/usr/lib/zotero/zotero", "/usr/bin/zotero")
  15. ## Copy zotero icons to a standard location
  16. pisitools.domove("/usr/lib/zotero/chrome/icons/default/default16.png", "/usr/share/icons/hicolor/16x16/apps", "zotero.png")
  17. pisitools.domove("/usr/lib/zotero/chrome/icons/default/default32.png", "/usr/share/icons/hicolor/32x32/apps", "zotero.png")
  18. pisitools.domove("/usr/lib/zotero/chrome/icons/default/default48.png", "/usr/share/icons/hicolor/48x48/apps", "zotero.png")
  19. pisitools.domove("/usr/lib/zotero/chrome/icons/default/default256.png", "/usr/share/icons/hicolor/256x256/apps", "zotero.png")