actions.py 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 cmaketools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. def setup():
  11. cmaketools.configure("-B build -DCMAKE_INSTALL_PREFIX=/usr \
  12. -DCMAKE_BUILD_TYPE=Release \
  13. -DDBUS_CONFIG_FILENAME=sddm_org.freedesktop.DisplayManager.conf \
  14. -DDBUS_CONFIG_DIR=/usr/share/dbus-1/system.d \
  15. -DNO_SYSTEMD=ON \
  16. -DUSE_ELOGIND=ON \
  17. -DBUILD_WITH_QT6=ON \
  18. -DCMAKE_INSTALL_LIBEXECDIR=/usr/lib/sddm \
  19. -DBUILD_MAN_PAGES=ON")
  20. cmaketools.configure("-B build5 -DCMAKE_INSTALL_PREFIX=/usr")
  21. def build():
  22. cmaketools.make("-C build")
  23. cmaketools.make("-C build5/src/greeter")
  24. cmaketools.make("-C build5/components")
  25. def install():
  26. cmaketools.install("-C build")
  27. cmaketools.install("-C build5/src/greeter")
  28. cmaketools.install("-C build5/components")
  29. shelltools.system('sed -i "s@system-local-login@system-login@" ' + get.installDIR() + "/etc/pam.d/sddm-autologin")
  30. # pisitools.insinto("/usr/share/sddm/themes/Sweet-Cat", "../Sweet-Cat-0.1/*")
  31. pisitools.insinto("/usr/share/sddm/themes/pisilinux24", "sddm-pisilinux24-1.1/*")
  32. # pisitools.dosym("/usr/bin/sddm-greeter-qt6", "/usr/bin/sddm-greeter")
  33. pisitools.dodoc("LICENSE")
  34. ## If you don't like to see any character at all not even while being entered set this to true.
  35. #pisitools.dosed("%s/usr/share/sddm/themes/Sweet-Cat/theme.conf" % get.installDIR(), 'ForceHideCompletePassword="false"', 'ForceHideCompletePassword="true"')