actions.py 1.1 KB

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