12345678910111213141516171819202122232425262728293031 |
- #!/usr/bin/python
- # -*- coding: utf-8 -*-
- #
- # Licensed under the GNU General Public License, version 3.
- # See the file http://www.gnu.org/licenses/gpl-3.0.txt
- from pisi.actionsapi import shelltools
- from pisi.actionsapi import pisitools
- from pisi.actionsapi import autotools
- from pisi.actionsapi import get
- def build():
- autotools.make('FC-LANG="" BLOCKS="/usr/share/unicode/ucd/Blocks.txt" UNICODEDATA="/usr/share/unicode/ucd/UnicodeData.txt"')
- def check():
- autotools.make("check")
- def install():
- pisitools.insinto("/usr/share/fonts/dejavu", "build/*.ttf")
- # Create symlinks for fontconfig files
- for conf in shelltools.ls("fontconfig"):
- pisitools.insinto("/etc/fonts/conf.avail", "fontconfig/%s" % conf)
- pisitools.dosym("/etc/fonts/conf.avail/%s" % conf, "/etc/fonts/conf.d/%s" % conf)
- pisitools.dosym("/usr/share/fonts/dejavu" , "/etc/X11/fontpath.d/dejavu")
- pisitools.dodoc("AUTHORS", "LICENSE", "NEWS")
|