1 # Maintainer: David Watzke <david@watzke.cz>
2 # Contributor: Jakub Luzny <limoto94@gmail.com>
7 pkgdesc='Qt4 (C++) based download manager with support for HTTP, FTP, SFTP, BitTorrent, rapidshare and more'
9 url="http://fatrat.dolezel.info/"
11 makedepends=('cmake>=2.6.0' 'git')
12 depends=('qt>=4.6.0' 'libtorrent-rasterbar>=0.15.0' 'curl>=7.18.2' 'pion-net>=3.0.0' 'java-environment>=6' 'gloox>=0.9')
13 optdepends=("geoip: for displaying the peer's country flag next to the IP address")
14 provides=('fatrat=1.2')
18 _gitroot="git://git.dolezel.info/fatrat.git"
23 msg "Connecting to GIT server...."
25 if [ -d "$srcdir/$_gitname" ] ; then
26 cd $_gitname && git pull origin
27 msg "The local files are updated."
30 cd "$srcdir/$_gitname"
33 msg "GIT checkout done or server timeout"
34 msg "Starting make..."
36 rm -rf "$srcdir/$_gitname-build"
37 cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38 cd "$srcdir/$_gitname-build"
40 cmake . -DCMAKE_INSTALL_PREFIX='/usr' -DWITH_BITTORRENT=ON -DWITH_CURL=ON -DWITH_NLS=ON \
41 -DWITH_JPLUGINS=ON -DWITH_WEBINTERFACE=ON -DWITH_JABBER=ON \
42 -DCMAKE_CXX_FLAGS="-DBOOST_FILESYSTEM_VERSION=2" \
43 # -DCMAKE_BUILD_TYPE=Debug
45 make DESTDIR="$pkgdir" install