actions.py 1.0 KB

123456789101112131415161718192021222324252627282930313233
  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 pisitools
  9. def setup():
  10. autotools.configure("--enable-print-profiles \
  11. --disable-examples \
  12. --disable-static \
  13. --disable-rpath \
  14. --disable-silent-rules \
  15. --enable-polkit \
  16. --enable-systemd-login=no \
  17. --with-daemon-user=colord \
  18. --with-systemdsystemunitdir=no \
  19. --enable-introspection \
  20. --enable-vala ")
  21. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  22. def build():
  23. autotools.make()
  24. def install():
  25. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  26. pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "TODO", "README.md")