actions.py 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import cmaketools
  9. from pisi.actionsapi import shelltools
  10. from pisi.actionsapi import get
  11. def setup():
  12. shelltools.unlinkDir("libparanoia")
  13. cmaketools.configure("-DBUILD_SHARED_LIBS:BOOL=ON")
  14. def build():
  15. autotools.make()
  16. def install():
  17. autotools.rawInstall("DESTDIR=%s PREFIX=/usr" % (get.installDIR()))
  18. pisitools.dosym("/usr/bin/wodim", "usr/bin/cdrecord")
  19. pisitools.dosym("/usr/bin/readom", "usr/bin/readcd")
  20. pisitools.dosym("/usr/bin/genisoimage", "usr/bin/mkisofs")
  21. pisitools.dosym("/usr/bin/genisoimage", "usr/bin/mkhybrid")
  22. pisitools.dosym("/usr/bin/icedax", "usr/bin/cdda2wav")
  23. pisitools.dosym("/usr/share/man/man1/wodim.1", "usr/share/man/man1/cdrecord.1")
  24. pisitools.dosym("/usr/share/man/man1/readom.1", "usr/share/man/man1/readcd.1")
  25. pisitools.dosym("/usr/share/man/man1/genisoimage.1", "usr/share/man/man1/mkisofs.1")
  26. pisitools.dosym("/usr/share/man/man1/genisoimage.1", "usr/share/man/man1/mkhybrid.1")
  27. pisitools.dosym("/usr/share/man/man1/icedax.1", "usr/share/man/man1/cdda2wav.1")
  28. pisitools.dodoc("ABOUT", "Changelog", "COPYING", "FAQ", "FORK", "START", "TODO", "VERSION")