actions.py 614 B

12345678910111213141516171819202122
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 2
  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 shelltools
  9. from pisi.actionsapi import pisitools
  10. def build():
  11. autotools.make("PREFIX='/usr'")
  12. shelltools.system("sed -n '4,25p' include/ffnvcodec/nvEncodeAPI.h > LICENSE")
  13. shelltools.system("sed -i '1,22s/^.\{,3\}//' LICENSE")
  14. def install():
  15. autotools.rawInstall("PREFIX='/usr' DESTDIR=%s" % get.installDIR())
  16. pisitools.dodoc("LICENSE")