actions.py 941 B

12345678910111213141516171819202122232425262728
  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
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. def setup():
  11. pisitools.dosed("75-yes-terminus.conf", "Term", "xos4 Term")
  12. autotools.configure("--x11dir=/usr/share/fonts/misc --otbdir=/usr/share/fonts/misc --psfdir=/usr/share/kbd/consolefonts")
  13. def build():
  14. autotools.make("all otb")
  15. def install():
  16. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  17. pisitools.insinto("/etc/fonts/conf.avail", "75-yes-terminus.conf", "75-yes-terminus.conf")
  18. for t in shelltools.ls("*.otb"):
  19. pisitools.insinto("/usr/share/fonts/misc", t)
  20. pisitools.dosym("../conf.avail/75-yes-terminus.conf", "/etc/fonts/conf.d/75-yes-terminus.conf")
  21. pisitools.dodoc("AUTHORS", "CHANGES", "README")