actions.py 974 B

12345678910111213141516171819202122232425262728293031
  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 get
  7. from pisi.actionsapi import kde5
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import shelltools
  10. shelltools.export("XDG_DATA_DIRS", get.workDIR())
  11. def setup():
  12. shelltools.system("sed -i -e 's|PATH_SUFFIXES lastfm5|PATH_SUFFIXES lastfm|' cmake/modules/FindLibLastFm.cmake")
  13. kde5.configure("-DCMAKE_BUILD_TYPE=Release \
  14. -DCMAKE_INSTALL_PREFIX=/usr \
  15. -DLIB_INSTALL_DIR=lib \
  16. -DPLUGIN_INSTALL_DIR=/usr/lib/qt5/plugins \
  17. -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
  18. -DBUILD_TESTING=OFF \
  19. -DKDE_DISTRIBUTION_TEXT='PisiLinux'")
  20. def build():
  21. kde5.make()
  22. def install():
  23. kde5.install()
  24. pisitools.dodoc("AUTHORS", "README", "COPYING", "ChangeLog")