actions.py 934 B

1234567891011121314151617181920212223242526272829303132333435
  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 shelltools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. import os
  10. del(os.environ["JOBS"])
  11. def setup():
  12. shelltools.system("./waf configure \
  13. --prefix=/usr \
  14. --libdir=/usr/lib \
  15. --alsa \
  16. --dbus \
  17. --firewire=no \
  18. ")
  19. def build():
  20. shelltools.system("./waf build -v")
  21. def install():
  22. shelltools.system("./waf --destdir=%s install" % get.installDIR())
  23. # be compatible with the former jackaudio
  24. pisitools.rename("/usr/bin/jack_rec", "jackrec")
  25. shelltools.chmod("%s/usr/lib/jack/*.so*" % get.installDIR(), 0755)
  26. pisitools.dodoc("ChangeLog.rst", "README*")