updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / rtorrent-pyro / PKGBUILD
blobe769b5158be6c70c3422ae34ec68642582f43219
1 # Maintainer:  Christian Brassat, crshd at mail dot com
3 pkgname=rtorrent-pyro
4 pkgver=0.8.9
5 pkgrel=1
6 pkgdesc="rTorrent with Pyroscope patches"
7 url="http://libtorrent.rakshasa.no"
8 arch=any
9 license=('GPLv2')
10 depends=('libtorrent' 'xmlrpc-c')
11 conflicts=('rtorrent')
12 replaces=('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"
16         "kb_vi_akston.patch")
17 md5sums=('629247636cb1210663b52dadbd040a6c'
18          'fef35d7b16e6d15aac09a1301779233c'
19          '3261c8c8009831d38678fd14487caa06'
20          'b512babd89e65a94c949088da0745446')
22 build() {
23         patch -uRp0 -i ${srcdir}/ui_pyroscope_unicode.patch
24         cd ${srcdir}/${pkgname%-pyro}-${pkgver}
26         patch -uNp1 -i ${srcdir}/kb_vi_akston.patch
27         
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}
32         done
34         for backport in ${srcdir}/backport_${pkgver}_*.patch; do
35                 patch -uNp0 -i ${backport}
36         done
38         patch -uNp1 -i ${srcdir}/pyroscope.patch
39         for i in ${srcdir}/*.{cc,h}; do
40                 ln -nfs ${i} srcdir
41         done
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
48         ./configure \
49                 --prefix=/usr \
50                 --mandir=/usr/man \
51                 --with-xmlrpc-c
52         make
55 package() {
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