actions.py 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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/copyleft/gpl.txt
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import get
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import pisitools
  10. def setup():
  11. #shelltools.export("MOC5", "moc-qt5")
  12. shelltools.system("sed -i s/systemd/elogind/ data/pam/*")
  13. autotools.configure("--prefix=/usr \
  14. --localstatedir=/var \
  15. --sysconfdir=/etc \
  16. --sbindir=/usr/bin \
  17. --libexecdir=/usr/lib/lightdm \
  18. --disable-static \
  19. --disable-tests \
  20. --enable-liblightdm-qt5 \
  21. --with-greeter-user=lightdm \
  22. --with-greeter-session=pisi-lightdm-greeter")
  23. def build():
  24. autotools.make()
  25. def install():
  26. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  27. shelltools.system("cp tests/src/lightdm-session " + get.installDIR() + "/usr/bin")
  28. shelltools.system("sed -i '1 s/sh/bash --login/' " + get.installDIR() + "/usr/bin/lightdm-session")
  29. pisitools.removeDir("/etc/init")
  30. pisitools.remove("/usr/lib/liblightdm-gobject-1.la")