actions.py 876 B

123456789101112131415161718192021222324252627282930313233
  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. --firewire \
  16. --alsa ")
  17. def build():
  18. shelltools.system("./waf build -v")
  19. def install():
  20. shelltools.system("./waf --destdir=%s install" % get.installDIR())
  21. # be compatible with the former jackaudio
  22. pisitools.rename("/usr/bin/jack_rec", "jackrec")
  23. shelltools.chmod("%s/usr/lib/jack/*.so*" % get.installDIR(), 0755)
  24. pisitools.dodoc("ChangeLog", "README*", "TODO")