actions.py 1.0 KB

1234567891011121314151617181920212223242526272829303132
  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/licenses/gpl.txt
  6. from pisi.actionsapi import get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import shelltools
  10. from pisi.actionsapi import mesontools
  11. # shelltools.export("JOBS", get.makeJOBS().replace("-j", ""))
  12. # shelltools.export("LDFLAGS", "%s -Wl,--as-needed" % get.LDFLAGS())
  13. def setup():
  14. mesontools.configure("-Dlibmpv=true \
  15. -Dcdda=enabled \
  16. -Ddvdnav=enabled \
  17. -Dsdl2=enabled \
  18. -Ddvbin=enabled \
  19. -Dlibarchive=enabled")
  20. def build():
  21. mesontools.build()
  22. def install():
  23. mesontools.install()
  24. pisitools.insinto("/usr/share/mpv/scripts", "TOOLS/lua/*")
  25. pisitools.dodoc("Copyright", "RELEASE_NOTES", "README.md")