actions.py 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 shelltools
  9. from pisi.actionsapi import get
  10. NoStrip = ["/"]
  11. if "_" in get.srcVERSION():
  12. WorkDir = get.srcNAME()
  13. def setup():
  14. pisitools.dosed("configure.ac", "multisound/Makefile", "")
  15. pisitools.dosed("Makefile.am", "multisound", "")
  16. autotools.autoreconf("-fi")
  17. autotools.configure("--with-hotplug-dir=/lib/firmware")
  18. def build():
  19. autotools.make()
  20. def install():
  21. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  22. #Remove conflicted file, it is in linux-firmware package
  23. pisitools.remove("lib/firmware/ctefx.bin")
  24. shelltools.system("rm -rf %s/lib/firmware/{ct{efx,speq}.bin,ess,korg,sb16,yamaha}" % get.installDIR())
  25. # Install additional readme files
  26. for d in ["hdsploader", "mixartloader", "pcxhrloader", "usx2yloader", "vxloader"]:
  27. pisitools.newdoc("%s/README" % d, "README.%s" % d)
  28. pisitools.dodoc("COPYING", "README")