actions.py 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/copyleft/gpl.txt
  5. from pisi.actionsapi import cmaketools
  6. from pisi.actionsapi import pisitools
  7. # if pisi can't find source directory, see /var/pisi/yarock/work/ and:
  8. # WorkDir="yarock-"+ get.srcVERSION() +"/sub_project_dir/"
  9. def setup():
  10. cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \
  11. -DCMAKE_INSTALL_PREFIX=/usr \
  12. -DENABLE_QT5=1 \
  13. -DENABLE_VLC=OFF \
  14. -DENABLE_MPV=ON \
  15. -DENABLE_PHONON=ON \
  16. -DTAGLIB_MIN_VERSION=1.9.1")
  17. def build():
  18. cmaketools.make()
  19. def install():
  20. cmaketools.install()
  21. # Take a look at the source folder for these file as documentation.
  22. pisitools.dodoc("CHANGES.md", "README.md")
  23. # If there is no install rule for a runnable binary, you can
  24. # install it to binary directory.
  25. # pisitools.dobin("yarock")
  26. # You can use these as variables, they will replace GUI values before build.
  27. # Package Name : yarock
  28. # Version : 1.1.6
  29. # Summary : Qt Modern Music Player with collection browse based on cover art
  30. # For more information, you can look at the Actions API
  31. # from the Help menu and toolbar.