1 # Maintainer: Christian Brassat, crshd at mail dot com
6 pkgdesc="rTorrent with Pyroscope patches"
7 url="http://libtorrent.rakshasa.no"
10 depends=('libtorrent' 'xmlrpc-c')
11 conflicts=('rtorrent')
13 source=("http://libtorrent.rakshasa.no/downloads/${pkgname%-pyro}-${pkgver}.tar.gz"
14 "pyroscope-patches-0.8.9.tar.bz2"
15 "ui_pyroscope_unicode.patch"
17 md5sums=('629247636cb1210663b52dadbd040a6c'
18 'fef35d7b16e6d15aac09a1301779233c'
19 '3261c8c8009831d38678fd14487caa06'
20 'b512babd89e65a94c949088da0745446')
23 patch -uRp0 -i ${srcdir}/ui_pyroscope_unicode.patch
24 cd ${srcdir}/${pkgname%-pyro}-${pkgver}
26 patch -uNp1 -i ${srcdir}/kb_vi_akston.patch
28 # Apply pyroscrope patches
29 # I tried to clean it up a bit, those guys created a fucked up mess
30 for corepatch in ${srcdir}/ps-*_${pkgver}.patch; do
31 patch -uNp1 -i ${corepatch}
34 for backport in ${srcdir}/backport_${pkgver}_*.patch; do
35 patch -uNp0 -i ${backport}
38 patch -uNp1 -i ${srcdir}/pyroscope.patch
39 for i in ${srcdir}/*.{cc,h}; do
43 patch -uNp1 -i ${srcdir}/ui_pyroscope.patch
45 sed -i -e 's/rTorrent \" VERSION/rTorrent-PatchedToHell " VERSION/' src/ui/download_list.cc
46 # End pyroscope patches
56 cd ${srcdir}/${pkgname%-pyro}-${pkgver}
57 make install DESTDIR=${pkgdir}
58 install -m 644 -D doc/rtorrent.1 ${pkgdir}/usr/man/man1/rtorrent.1