actions.py 842 B

123456789101112131415161718192021222324252627
  1. #!/usr/bin/env 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 pisitools
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import mesontools
  9. from pisi.actionsapi import get
  10. def setup():
  11. shelltools.export("CFLAGS", "%s -Wformat" % get.CFLAGS())
  12. pisitools.ldflags.add("-Wl,--allow-multiple-definition")
  13. mesontools.configure("-D docs=true -D gstreamer=disabled")
  14. def build():
  15. mesontools.build()
  16. def install():
  17. mesontools.install()
  18. pisitools.domove("/usr/share/doc/pipewire/*", "/usr/share/doc/pipewire-0.2/")
  19. pisitools.removeDir("/usr/share/doc/pipewire/")
  20. pisitools.removeDir("/usr/bin")
  21. pisitools.removeDir("/etc")
  22. pisitools.dodoc("LICENSE", "NEWS", "README*")