actions.py 973 B

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/env python3
  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-3.0.txt
  6. from inary.actionsapi import shelltools
  7. from inary.actionsapi import inarytools
  8. from inary.actionsapi import autotools
  9. from inary.actionsapi import get
  10. def build():
  11. autotools.make('FC-LANG="" BLOCKS="/usr/share/unicode/ucd/Blocks.txt" UNICODEDATA="/usr/share/unicode/ucd/UnicodeData.txt"')
  12. def check():
  13. autotools.make("check")
  14. def install():
  15. inarytools.insinto("/usr/share/fonts/dejavu", "build/*.ttf")
  16. # Create symlinks for fontconfig files
  17. for conf in shelltools.ls("fontconfig"):
  18. inarytools.insinto("/etc/fonts/conf.avail", "fontconfig/%s" % conf)
  19. inarytools.dosym("/etc/fonts/conf.avail/%s" % conf, "/etc/fonts/conf.d/%s" % conf)
  20. inarytools.dosym("/usr/share/fonts/dejavu" , "/etc/X11/fontpath.d/dejavu")
  21. inarytools.dodoc("AUTHORS", "LICENSE", "NEWS")