Advertisement
Guest User

qbittorrent-fake

a guest
Nov 4th, 2011
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. pkgname=qbittorrent-fake
  2. pkgver=2.9.2
  3. pkgrel=1
  4. pkgdesc="A bittorrent client written in C++ / Qt4 using libtorrent-rasterbar library (with uTorrent user-agent)"
  5. arch=('i686' 'x86_64')
  6. url="http://www.qbittorrent.org/"
  7. license=('GPL')
  8. depends=('qt' 'libtorrent-rasterbar' 'xdg-utils')
  9. optdepends=('python2: needed for search'
  10. 'geoip: improves peer country resolution')
  11. makedepends=('boost')
  12. provides=('qbittorrent')
  13. conflicts=('qbittorrent')
  14. source=("http://downloads.sourceforge.net/project/qbittorrent/qbittorrent/qbittorrent-${pkgver}/qbittorrent-${pkgver}.tar.gz")
  15. md5sums=('0c2188e0065be57e50c06f5934d5f7a2')
  16.  
  17. build() {
  18. cd qbittorrent-${pkgver}
  19. sed -i -e 's|sessionSettings.user_agent = "qBittorrent "VERSION;|sessionSettings.user_agent = "uTorrent/2210(25302)";|' \
  20. ./src/qtlibtorrent/qbtsession.cpp
  21. sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
  22. -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
  23. $(find ./ -name '*.py')
  24. ./configure --prefix=/usr
  25. make
  26. }
  27.  
  28. package() {
  29. cd qbittorrent-${pkgver}
  30. make INSTALL_ROOT=${pkgdir} install
  31. }
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement