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/licenses/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("data/org.mate.peripherals-touchpad.gschema.xml.in", "<default>false</default>", "<default>true</default>")
  12. autotools.configure("--enable-pulse \
  13. --libexecdir=/usr/lib/mate-settings-daemon \
  14. --disable-static \
  15. --disable-schemas-compile \
  16. --enable-polkit \
  17. --with-x \
  18. --with-nssdb")
  19. # for fix unused dependency
  20. pisitools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")
  21. def build():
  22. autotools.make()
  23. def install():
  24. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  25. pisitools.dodoc("README", "COPYING", "NEWS", "ChangeLog", "AUTHORS")