actions.py 999 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file https://www.gnu.org/licenses/gpl-3.0.txt
  6. from pisi.actionsapi import autotools, pisitools, get
  7. i = ''.join([
  8. ' -Wno-deprecated-declarations',
  9. ' -Wno-restrict',
  10. ' -Wno-stringop-truncation',
  11. ' -Wno-unused-result '
  12. ])
  13. t = "99-pulseaudio-default.conf"
  14. def setup():
  15. pisitools.cflags.add(i)
  16. autotools.configure("--enable-maemo-plugin --disable-static --with-speex=lib")
  17. def build():
  18. autotools.make()
  19. def install():
  20. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  21. pisitools.insinto("/usr/share/alsa/alsa.conf.d", "pulse/%s.example" % t, "%s" % t)
  22. pisitools.dosym("/usr/share/alsa/alsa.conf.d/%s" % t, "/etc/alsa/conf.d/%s" % t)
  23. pisitools.remove("/etc/alsa/conf.d/98-maemo.conf")
  24. pisitools.dosym("/usr/share/alsa/alsa.conf.d/98-maemo.conf", "/etc/alsa/conf.d/98-maemo.conf")
  25. pisitools.dodoc("COPYING", "COPYING.GPL", "doc/*.txt", "doc/README*")