updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / fatrat-git / PKGBUILD
blob0bde283b8aeb507875fcf69cbcb97fd1c458601f
1 # Maintainer: David Watzke <david@watzke.cz>
2 # Contributor: Jakub Luzny <limoto94@gmail.com>
4 pkgname=fatrat-git
5 pkgver=20110629
6 pkgrel=1
7 pkgdesc='Qt4 (C++) based download manager with support for HTTP, FTP, SFTP, BitTorrent, rapidshare and more'
8 arch=('i686' 'x86_64')
9 url="http://fatrat.dolezel.info/"
10 license=('GPL')
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')
15 conflicts=('fatrat')
16 #options=('!strip')
18 _gitroot="git://git.dolezel.info/fatrat.git"
19 _gitname="fatrat"
21 build() {
22   cd "$srcdir"
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."
28   else
29     git clone $_gitroot
30     cd "$srcdir/$_gitname"
31   fi
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
44   make
45   make DESTDIR="$pkgdir" install 
49 #category: network