1 # Maintainer: archtux <antonio.arias99999 at gmail.com>
6 pkgdesc="Torium is a free, open source, minimalistic torrent client for Linux."
8 url="http://bithack.se/projects/torium/"
10 depends=('boost>=1.34' 'gtkmm>=2.4.0' 'libnotify' 'libtorrent-rasterbar>=0.13')
11 makedepends=('pkgconfig>=0.9')
12 source=(http://sourceforge.net/projects/torium/files/torium/torium-$pkgver/torium-$pkgver.tar.gz
13 'http://www.iconfinder.com/ajax/download/png/?id=30507&s=24')
14 md5sums=('fa1980cef7e248dbd82526f247541442'
15 '6536094be5d9cf7d0eac16ea69a25476')
19 cd $srcdir/$pkgname-$pkgver/src
21 #Patches(Disable '-Wdeprecated-declarations' & 'Wwrite-strings' warnings, add boost/lexical_cast header file,
22 # add 'string' library, libnotify>0.4 fix(too many arguments), desktop icon for all desktops)
23 sed -i '1i#pragma GCC diagnostic ignored "-Wdeprecated-declarations"' treeview.cc
24 sed -i '2i#pragma GCC diagnostic ignored "-Wwrite-strings"' treeview.cc
25 sed -i '3i#include <boost/lexical_cast.hpp>' treeview.cc
26 sed -i '4i#include <string>' treeview.cc
27 sed -i 's_"Torium", 0_"Torium"_' treeview.cc
29 sed -i '/NotShowIn=KDE;/d' torium.desktop
30 sed -i 's_GNOME;GTK;__' torium.desktop
31 sed -i 's_gtk-network_/usr/share/pixmaps/torium.png_' torium.desktop
33 ./configure --prefix=/usr
34 make DESTDIR=$pkgdir install
37 install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
40 install -Dm644 $startdir/?id=30507* $pkgdir/usr/share/pixmaps/torium.png