actions.py 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/usr/bin/env python3
  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 inary.actionsapi import autotools
  7. from inary.actionsapi import inarytools
  8. from inary.actionsapi import shelltools
  9. from inary.actionsapi import get
  10. def setup():
  11. shelltools.unlink("m4/glib-gettext.m4")
  12. shelltools.system("./autogen.sh")
  13. autotools.configure("--prefix=/usr \
  14. --disable-static \
  15. --enable-cli \
  16. --disable-daemon")
  17. def build():
  18. autotools.make()
  19. def install():
  20. # gtk
  21. autotools.rawInstall("-C gtk DESTDIR=%s" % get.installDIR())
  22. autotools.rawInstall("-C po DESTDIR=%s" % get.installDIR())
  23. # cli,web, deamon
  24. for _dir in ["cli", "web", "utils"]:
  25. autotools.rawInstall("-C %s DESTDIR=%s" % (_dir, get.installDIR()))
  26. # For daemon config files.
  27. inarytools.dodir("/etc/transmission-daemon")
  28. inarytools.dodoc("COPYING", "AUTHORS", "README", "NEWS")