actions.py 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  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. #shelltools.system("sed -i '/^#define/a #include <list>' src/interface/Mainfrm.h")
  12. #shelltools.export("WXRC", "/usr/bin/wxrc")
  13. #shelltools.export("LDFLAGS", "%s -lpthread" % get.LDFLAGS())
  14. #pisitools.dosed("data/filezilla.desktop", "Icon=filezilla", "Icon=/usr/share/pixmaps/filezilla.png")
  15. autotools.autoreconf("-fiv")
  16. autotools.configure("--disable-static \
  17. --disable-manualupdatecheck \
  18. --disable-autoupdatecheck \
  19. --with-pugixml=builtin \
  20. --prefix=/usr ")
  21. def build():
  22. autotools.make()
  23. def install():
  24. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  25. # move fzdefaults.xml.example to /usr/share/filezilla
  26. pisitools.domove("/usr/share/filezilla/docs/fzdefaults.xml.example", "/usr/share/filezilla")
  27. pisitools.removeDir("/usr/share/filezilla/docs")
  28. pisitools.dodoc("ChangeLog", "README", "AUTHORS")