actions.py 822 B

12345678910111213141516171819202122
  1. #!/usr/bin/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 pisitools
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import get
  9. def install():
  10. shelltools.chmod("*.ttf",0644)
  11. pisitools.insinto("/usr/share/fonts/droid","*.ttf")
  12. pisitools.dosym("../conf.avail/65-droid-fonts-sans-fontconfig.conf", "/etc/fonts/conf.d/65-droid-fonts-sans-fontconfig.conf")
  13. pisitools.dosym("../conf.avail/60-droid-fonts-sans-mono-fontconfig.conf", "/etc/fonts/conf.d/60-droid-fonts-sans-mono-fontconfig.conf")
  14. pisitools.dosym("../conf.avail/59-droid-fonts-serif-fontconfig.conf", "/etc/fonts/conf.d/59-droid-fonts-serif-fontconfig.conf")
  15. pisitools.dodoc("NOTICE", "README.txt")