actions.py 822 B

123456789101112131415161718192021222324252627282930313233
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file https://www.gnu.org/licenses/gpl-3.0.txt
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. i = "--with-vendor-info='Pisi Linux' \
  10. --enable-vala=yes \
  11. --enable-introspection \
  12. --enable-startup-notification \
  13. --enable-wayland \
  14. --disable-static \
  15. "
  16. def setup():
  17. pisitools.cflags.add("-Wno-deprecated-declarations")
  18. autotools.configure(i)
  19. pisitools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
  20. def build():
  21. autotools.make()
  22. def install():
  23. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  24. pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "NEWS", "README*", "THANKS")