actions.py 948 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file https://www.gnu.org/licenses/gpl-3.0.txt
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. j = ''.join([
  10. ' --prefix=/usr',
  11. ' --enable-bittorrent',
  12. ' --enable-libaria2',
  13. ' --enable-metalink',
  14. ' --enable-epoll',
  15. ' --enable-nls',
  16. ' --disable-rpath',
  17. ' --disable-static',
  18. ' --with-libz',
  19. ' --with-gnutls',
  20. ' --with-sqlite3',
  21. ' --with-libxml2',
  22. ' --with-libssh2',
  23. ' --with-libcares',
  24. ' --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt',
  25. ' --with-bashcompletiondir=/usr/share/bash-completion/completions '
  26. ])
  27. def setup():
  28. autotools.configure(j)
  29. def build():
  30. autotools.make()
  31. def install():
  32. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  33. pisitools.dodoc("AUTHORS", "ChangeLog", "README*")