actions.py 1.4 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. docdir = '/%s/%s' % (get.docDIR(), get.srcNAME())
  10. def setup():
  11. pisitools.dosed("sylpheed.desktop", "Icon=sylpheed", "Icon=sylpheed-128x128")
  12. autotools.configure("--enable-ldap \
  13. --enable-compface \
  14. --disable-updatecheck \
  15. --disable-updatecheckplugin \
  16. --disable-static \
  17. --with-manualdir=%s \
  18. --with-faqdir=%s" % (docdir, docdir))
  19. def build():
  20. autotools.make()
  21. def install():
  22. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  23. pisitools.dodir("/usr/share/pixmaps")
  24. pisitools.insinto("/usr/share/pixmaps", "*.png")
  25. pisitools.insinto("/usr/share/applications", "sylpheed.desktop")
  26. pisitools.dodoc("AUTHORS", "COPYING", "ChangeLog", "NEWS*", "README*", "TODO*", "PLUGIN.txt", "ABOUT-NLS")
  27. pisitools.dodir("/usr/lib/sylpheed/plugins")
  28. pisitools.insinto("/usr/lib/sylpheed/plugins", "plugin/attachment_tool/.libs/attachment_tool.so")
  29. for lang in ["en", "de", "es", "fr", "it", "ja"]:
  30. pisitools.domove("/usr/share/doc/sylpheed/%s" % lang, "/usr/share/doc/sylpheed/html/")