actions.py 954 B

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file https://www.gnu.org/licenses/gpl-3.0.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 \
  15. PYTHON_INTERPRETER="/usr/bin/python3" ' % (get.CXXFLAGS(), get.LDFLAGS()))
  16. def install():
  17. scons.install("install WILL_DEAL_WITH_XDG_MYSELF=1 DESTDIR=%s" % get.installDIR())
  18. pisitools.dodir("/usr/share/applications")
  19. pisitools.dosym("/usr/share/libffado/icons/hi64-apps-ffado.png", "/usr/share/pixmaps/ffado-mixer.png")
  20. pisitools.domove("/usr/man/", "/usr/share")
  21. pisitools.dodoc("AUTHORS", "ChangeLog", "LICENSE*", "TODO", "README")