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

rtorrent-pyro 0.9.4

By: a guest on Jul 30th, 2014  |  syntax: None  |  size: 2.16 KB  |  views: 234  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print  |  QR code  |  clone
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Christian Brassat, crshd at mail dot com
  2. # Maintainer:  Skydrome <irc.freenode.net>
  3.  
  4. pkgname=rtorrent-pyro
  5. _pkgname=${pkgname%-*}
  6. pkgver=0.9.4
  7. pkgrel=1
  8. pkgdesc="rTorrent with Pyroscope patches"
  9. url="https://code.google.com/p/pyroscope"
  10. license=('GPLv2')
  11. arch=('i686' 'x86_64')
  12. depends=('libtorrent=0.13.4' 'curl' 'xmlrpc-c' 'libsigc++')
  13. makedepends=('gcc>=4.7.0')
  14. conflicts=("${_pkgname}")
  15. replaces=("${_pkgname}")
  16.  
  17. _pyrourl="https://raw.githubusercontent.com/pyroscope/rtorrent-ps/master/patches"
  18. source=("http://libtorrent.rakshasa.no/downloads/${_pkgname}-${pkgver}.tar.gz"
  19.                 "${_pyrourl}/ps-ui_pyroscope_0.8.8.patch"
  20.                 "${_pyrourl}/pyroscope.patch"
  21.                 "${_pyrourl}/ui_pyroscope.patch"
  22.                 "${_pyrourl}/command_pyroscope.cc"
  23.                 "${_pyrourl}/ui_pyroscope.cc"
  24.                 "${_pyrourl}/ui_pyroscope.h")
  25.  
  26. md5sums=('fd9490a2ac67d0fa2a567c6267845876'
  27.          '7a88f8ab5d41242fdf1428de0e2ca182'
  28.          'bd04a0699b80c8042e1cf63a7e0e4222'
  29.          '0a2bbaf74c7160ba33876dcc2f050f14'
  30.          'f85ca3ddee824d4b6ee6062fc3ed25b3'
  31.          '951b40c6d43caf0a3bffc5fffcc557d5'
  32.          '1258acfc82c50a8f452ace87fef0b416')
  33.  
  34. prepare() {
  35.     cd "${_pkgname}-${pkgver}"
  36.     # Used by the the pyroscope patch to determine version we are patching to
  37.     sed -i "s:\\(AC_DEFINE(HAVE_CONFIG_H.*\\):\1\\nAC_DEFINE(RT_HEX_VERSION, 0x000904, for CPP if checks):" configure.ac
  38.     for i in ${srcdir}/*.patch; do
  39.         patch -uNp1 -i "$i"
  40.     done
  41.     for i in ${srcdir}/*.{cc,h}; do
  42.         ln -s $i src
  43.     done
  44.     sed -i 's:rTorrent \" VERSION:rTorrent-pyro " VERSION:' src/ui/download_list.cc
  45.  
  46. }
  47.  
  48. build() {
  49.     cd "${_pkgname}-${pkgver}"
  50.     export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing -std=c++11"
  51.     ./autogen.sh
  52.     ./configure --prefix=/usr --disable-debug --with-xmlrpc-c
  53.     make
  54. }
  55.  
  56. package() {
  57.     cd "${srcdir}/${_pkgname}-${pkgver}"
  58.     make DESTDIR="${pkgdir}" install
  59.     #The man page is not in the repo
  60.     #install -Dm644 doc/faq.xml      ${pkgdir}/usr/share/doc/rtorrent/faq.xml
  61.     #install -Dm644 doc/rtorrent.1   ${pkgdir}/usr/share/man/man1/rtorrent.1
  62.     install -Dm644 doc/rtorrent.rc  ${pkgdir}/usr/share/doc/rtorrent/rtorrent.rc
  63. }
clone this paste RAW Paste Data