actions.py 1.1 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 autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. from pisi.actionsapi import shelltools
  10. def setup():
  11. autotools.autoreconf("-fiv")
  12. #shelltools.system("./autogen.sh")
  13. autotools.configure("--prefix=/usr \
  14. --sysconfdir=/etc \
  15. --with-pam \
  16. --enable-gtk3 \
  17. --disable-consolekit \
  18. --with-systemdsystemunitdir=no")
  19. def build():
  20. autotools.make()
  21. def install():
  22. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  23. #install Pisi Linux default theme
  24. pisitools.dodir("/usr/share/lxdm/themes/lxdm-pisilinux-theme")
  25. pisitools.insinto("/usr/share/lxdm/themes/lxdm-pisilinux-theme", "lxdm-pisilinux-theme/*")
  26. #pisitools.remove("/usr/share/lxdm/themes/lxdm-pisilinux-theme/login.png")
  27. pisitools.dodoc("COPYING", "AUTHORS", "TODO", "README", "ChangeLog", "NEWS")