updated on Fri Jan 13 20:02:10 UTC 2012
[aur-mirror.git] / qubittorrent / PKGBUILD
blob5743b524c5df7c061a0e7a430faec67d0e2bfd37
1 pkgname=qubittorrent
2 pkgver=2.9.3
3 pkgrel=2
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=('python: needed for search' 'geoip: improves peer country resolution')
10 makedepends=('boost' 'geoip')
11 provides=('qbittorrent')
12 conflicts=('qbittorrent qbittorrent-fake')
13 source=("http://downloads.sourceforge.net/sourceforge/qbittorrent/qbittorrent-${pkgver}.tar.gz")
14 md5sums=('bd35950260f633215db8acd7c22317dc')
16 build() {
17   tar xf qbittorrent-${pkgver}.tar.gz
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   ./configure --prefix=/usr
22   make
25 package() {
26   cd qbittorrent-${pkgver}
27   make INSTALL_ROOT=${pkgdir} install
30 post_install() {
31   xdg-icon-resource forceupdate --theme hicolor &> /dev/null
34 post_upgrade() {
35   post_install
38 post_remove() {
39   post_install