actions.py 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/licenses/gpl.txt
  5. from pisi.actionsapi import autotools
  6. from pisi.actionsapi import pisitools
  7. from pisi.actionsapi import get
  8. def setup():
  9. autotools.configure("--disable-vlock \
  10. --enable-nls \
  11. --prefix=/usr \
  12. --datadir=/usr/share/kbd \
  13. --localedir=/usr/share/locale/kbd \
  14. --mandir=/usr/share/man")
  15. def build():
  16. autotools.make("KEYCODES_PROGS=yes RESIZECONS_PROGS=yes")
  17. def install():
  18. autotools.rawInstall("KEYCODES_PROGS=yes RESIZECONS_PROGS=yes DESTDIR=%s" % get.installDIR())
  19. for exe in ("loadkeys", "setfont", "unicode_start", "unicode_stop"):
  20. pisitools.domove("/usr/bin/%s" % exe, "/bin")
  21. pisitools.dosym("/bin/%s" % exe, "/usr/bin/%s" % exe)
  22. pisitools.remove("/usr/share/kbd/keymaps/i386/qwerty/trf.map.gz")
  23. # pisitools.dohtml("docs/doc/*.html")
  24. pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "README")