actions.py 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. #!/usr/bin/env python3
  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 pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. def setup():
  11. pisitools.dosed("configure.ac", "/usr/libexec/at-spi-bus-launcher", "/usr/libexec/at-spi2/at-spi-bus-launcher")
  12. shelltools.system("NOCONFIGURE=1 ./autogen.sh")
  13. autotools.configure(" --prefix=/usr \
  14. --sbindir=/usr/bin \
  15. --sysconfdir=/etc \
  16. --with-libxklavier \
  17. --enable-kill-on-sigterm \
  18. --disable-libido \
  19. --disable-libindicator \
  20. --disable-static \
  21. --enable-at-spi-command='/usr/libexec/at-spi2/at-spi-bus-launcher --launch-immediately' \
  22. --with-gtk3 \
  23. --enable-nls")
  24. def build():
  25. autotools.make()
  26. def install():
  27. autotools.rawInstall("DESTDIR=%s" % get.installDIR())