47 lines
1.7 KiB
Python
47 lines
1.7 KiB
Python
#!/usr/bin/python
|
|
# -*- coding: utf-8 -*-
|
|
#
|
|
# Licensed under the GNU General Public License, version 3.
|
|
# See the file http://www.gnu.org/licenses/gpl.txt
|
|
|
|
from pisi.actionsapi import cmaketools
|
|
from pisi.actionsapi import pisitools
|
|
from pisi.actionsapi import shelltools
|
|
from pisi.actionsapi import get
|
|
|
|
def setup():
|
|
#shelltools.export("PYTHON", "/usr/bin/python3")
|
|
shelltools.makedirs("build")
|
|
shelltools.cd("build")
|
|
|
|
cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DDBUS_CONFIG_FILENAME=sddm_org.freedesktop.DisplayManager.conf \
|
|
-DDBUS_CONFIG_DIR=/usr/share/dbus-1/system.d \
|
|
-DNO_SYSTEMD=ON \
|
|
-DUSE_ELOGIND=ON \
|
|
-DCMAKE_INSTALL_LIBEXECDIR=/usr/lib/sddm \
|
|
-DBUILD_MAN_PAGES=ON", sourceDir=".." )
|
|
|
|
def build():
|
|
shelltools.makedirs("build")
|
|
shelltools.cd("build")
|
|
|
|
cmaketools.make()
|
|
|
|
def install():
|
|
shelltools.makedirs("build")
|
|
shelltools.cd("build")
|
|
|
|
cmaketools.install()
|
|
|
|
shelltools.system('sed -i "s@system-local-login@system-login@" ' + get.installDIR() + "/etc/pam.d/sddm-autologin")
|
|
|
|
# pisitools.insinto("/usr/share/sddm/themes/Sweet-Cat", "../Sweet-Cat-0.1/*")
|
|
pisitools.insinto("/usr/share/sddm/themes/Pisilinux234V2", "../Pisilinux234V2-sddm-themes-1.0/*")
|
|
|
|
pisitools.dodoc("../LICENSE")
|
|
|
|
## If you don't like to see any character at all not even while being entered set this to true.
|
|
#pisitools.dosed("%s/usr/share/sddm/themes/Sweet-Cat/theme.conf" % get.installDIR(), 'ForceHideCompletePassword="false"', 'ForceHideCompletePassword="true"')
|