actions.py 1.0 KB

1234567891011121314151617181920212223242526272829303132
  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 kde6
  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. kde6.configure("-DCMAKE_BUILD_TYPE=Release \
  14. -DCMAKE_INSTALL_PREFIX=/usr \
  15. -DLIB_INSTALL_DIR=lib \
  16. -DPLUGIN_INSTALL_DIR=/usr/lib/qt6/plugins \
  17. -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
  18. -DBUILD_TESTING=OFF \
  19. -DBUILD_WITH_QT6=ON \
  20. -DKDE_DISTRIBUTION_TEXT='PisiLinux'")
  21. def build():
  22. kde6.make()
  23. def install():
  24. kde6.install()
  25. pisitools.dodoc("AUTHORS", "README", "COPYING*", "ChangeLog", "LICENSES/*")