Want more features on Pastebin? Sign Up, it's FREE!
Guest

qbittorrent-fake

By: a guest on Nov 4th, 2011  |  syntax: None  |  size: 1.11 KB  |  views: 52  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.  
clone this paste RAW Paste Data