actions.py 878 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 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. WorkDir = "freefont-%s" % get.srcVERSION().split("_")[1]
  10. def build():
  11. shelltools.system("fontforge -lang=ff -script buildscript *.sfd")
  12. def install():
  13. pisitools.insinto("/usr/share/fonts/freefont/", "*.ttf")
  14. pisitools.dosym("../conf.avail/60-gnu-free-mono.conf", "/etc/fonts/conf.d/60-gnu-free-mono.conf")
  15. pisitools.dosym("../conf.avail/60-gnu-free-sans.conf", "/etc/fonts/conf.d/60-gnu-free-sans.conf")
  16. pisitools.dosym("../conf.avail/60-gnu-free-serif.conf", "/etc/fonts/conf.d/60-gnu-free-serif.conf")
  17. pisitools.dodoc("*.pdf", "AUTHORS", "ChangeLog", "CREDITS", "README","COPYING")