actions.py 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 autotools
  9. from pisi.actionsapi import qt6
  10. from pisi.actionsapi import get
  11. #WorkDir = "vokoscreenNG-%s/src" % get.srcVERSION()
  12. def setup():
  13. shelltools.makedirs("vokoscreenNG")
  14. shelltools.cd("vokoscreenNG")
  15. #shelltools.cd("cd src")
  16. pisitools.cxxflags.add("-Wno-deprecated-declarations")
  17. # qt6.configure("../src/vokoscreenNG.pro")
  18. shelltools.system("qmake-qt6 PREFIX=/usr ../src/vokoscreenNG.pro")
  19. def build():
  20. shelltools.cd("vokoscreenNG")
  21. # qt6.make("PREFIX=/usr")
  22. shelltools.system("make")
  23. def install():
  24. shelltools.cd("vokoscreenNG")
  25. # qt6.install("INSTALL_ROOT=%s" % get.installDIR())
  26. shelltools.system("make install INSTALL_ROOT=%s" % get.installDIR())
  27. #pisitools.dobin("vokoscreenNG")
  28. #pisitools.insinto("/usr/share/applications", "src/applications/vokoscreenNG.desktop", "vokoscreenNG.desktop")
  29. #pisitools.insinto("/usr/share/pixmaps", "src/applications/vokoscreenNG.png", "vokoscreenNG.png")
  30. shelltools.cd("..")
  31. pisitools.dodoc("COPYING")