actions.py 961 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 http://www.gnu.org/copyleft/gpl.txt
  6. from pisi.actionsapi import get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. def setup():
  10. autotools.autoreconf("-fiv")
  11. autotools.configure("\
  12. CONF_DRIVER=nvidia \
  13. CONF_DRIVER_MODULE_NVIDIA=nvidia \
  14. CONF_LDPATH_NVIDIA=/usr/lib/nvidia-current:/usr/lib32/nvidia-current \
  15. CONF_MODPATH_NVIDIA=//usr/lib/nvidia-current,/usr/lib/xorg/modules \
  16. CONF_PRIMUS_LD_PATH=/usr/lib/primus:/usr/lib32/primus \
  17. --with-udev-rules=/lib/udev/rules.d/ \
  18. --without-pidfile \
  19. ")
  20. def build():
  21. autotools.make()
  22. def install():
  23. autotools.rawInstall("DESTDIR=%s" % get.installDIR())