actions.py 892 B

12345678910111213141516171819202122232425262728
  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 pisitools
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import scons
  9. from pisi.actionsapi import get
  10. shelltools.export("PYTHONDONTWRITEBYTECODE", "1")
  11. def build():
  12. scons.make('PREFIX=/usr \
  13. COMPILE_FLAGS="%s %s -lpthread" \
  14. BUILD_TESTS=0' % (get.CXXFLAGS(), get.LDFLAGS()))
  15. def install():
  16. scons.install("install WILL_DEAL_WITH_XDG_MYSELF=1 DESTDIR=%s" % get.installDIR())
  17. pisitools.dodir("/usr/share/applications")
  18. pisitools.dosym("/usr/share/libffado/icons/hi64-apps-ffado.png", "/usr/share/pixmaps/ffado-mixer.png")
  19. pisitools.domove("/usr/man/", "/usr/share")
  20. pisitools.dodoc("AUTHORS", "ChangeLog", "LICENSE*", "TODO", "README")