actions.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. pisitools.dosed("configure.ac", "systemd", deleteLine=True)
  12. shelltools.system("NOCONFIGURE=1 ./autogen.sh")
  13. autotools.configure("--disable-static \
  14. --libexecdir=/usr/bin/mate-control-center \
  15. --sbindir=/usr/bin \
  16. --with-gnu-ld \
  17. --disable-systemd \
  18. --disable-update-mimedb \
  19. --disable-schemas-compile")
  20. # fix unused-direct-shlib-dependency
  21. pisitools.dosed("libtool"," -shared ", " -Wl,-O1--as-needed -shared ")
  22. def build():
  23. autotools.make()
  24. def install():
  25. #pisitools.dodir("/usr/lib")
  26. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  27. pisitools.dodoc("README", "COPYING", "NEWS", "ChangeLog", "AUTHORS", "TODO")
  28. pisitools.remove("/usr/share/applications/mimeinfo.cache")