actions.py 767 B

123456789101112131415161718192021222324
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file https://www.gnu.org/licenses/gpl-3.0.txt
  6. from pisi.actionsapi import shelltools, pisitools
  7. def install():
  8. for lib in shelltools.ls("lib/*"):
  9. shelltools.chmod(lib, mode = 0644)
  10. pisitools.insinto("/usr/lib/perl5/vendor_perl/5.32.0/ClamTk", lib)
  11. for po in shelltools.ls("po/*.po"):
  12. shelltools.chmod(po, mode = 0644)
  13. pisitools.domo(po, shelltools.baseName(po).replace(".po", ""), "clamtk.mo")
  14. pisitools.dobin("clamtk")
  15. pisitools.insinto("/usr/share/applications", "clamtk.desktop")
  16. pisitools.dopixmaps("images/*")
  17. pisitools.doman("clamtk.1.gz")
  18. pisitools.insinto("/usr/share/metainfo", "com.github.davetheunsub.clamtk.appdata.xml")