actions.py 618 B

12345678910111213141516171819
  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 get
  6. from pisi.actionsapi import pisitools
  7. from pisi.actionsapi import shelltools
  8. WorkDir="pdfid-%s" % get.srcVERSION()
  9. def install():
  10. shelltools.cd("..")
  11. shelltools.copytree("pdfid-%s" % get.srcVERSION(), "%s/usr/share/pdfid/" % get.installDIR())
  12. shelltools.cd(WorkDir)
  13. shelltools.chmod(get.installDIR() + "/usr/share/pdfid/pdfid.py", mode=0755)
  14. pisitools.dosym("/usr/share/pdfid/pdfid.py", "/usr/bin/pdfid")