actions.py 753 B

123456789101112131415161718192021222324252627
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Copyright 2009 TUBITAK/UEKAE
  5. # Licensed under the GNU General Public License, version 2.
  6. # See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. def build():
  10. shelltools.system("LIBDIR=lib make")
  11. shelltools.system("LIBDIR=lib32 CXX='g++ -m32' make")
  12. def install():
  13. pisitools.insinto("/etc/bash_completion.d", "primus.bash-completion", "primusrun")
  14. pisitools.dobin("primusrun")
  15. pisitools.insinto("/usr/lib/primus", "lib/*")
  16. pisitools.insinto("/usr/lib32/primus", "lib32/*")
  17. pisitools.dodoc("LICENSE.txt","README.md", "technotes.md")
  18. pisitools.doman("primusrun.1")