summaryrefslogtreecommitdiff
path: root/community/fatrat/PKGBUILD
blob: 09ae546f07c8a182ffe996a58f8f54c07007b00d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# $Id: PKGBUILD 61071 2011-12-21 20:50:30Z andrea $
# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>

pkgname=fatrat
pkgver=1.2.0_beta1
pkgrel=3
pkgdesc="QT4 based download manager with support for HTTP, FTP, SFTP, BitTorrent, rapidshare and more"
arch=('i686' 'x86_64' 'mips64el')
url="http://fatrat.dolezel.info/"
license=('GPL')
depends=('gloox' 'qt' 'libtorrent-rasterbar' 'pion-net' 'qtwebkit')
optdepends=('geoip: GeoIP support')
makedepends=('boost' 'cmake' 'java-environment')
source=(http://www.dolezel.info/download/data/fatrat/fatrat-$pkgver.tar.gz)
md5sums=('7ce4d5e6318361f36ba5ac86a5755da9')

build() {
  cd $pkgname-$pkgver

  . /etc/profile.d/jre.sh
  . /etc/profile.d/jdk.sh

  cmake \
    -DWITH_EVERYTHING=ON \
    -DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS="-lpthread" \
    -DCMAKE_CXX_FLAGS="${CXXFLAGS} -DBOOST_FILESYSTEM_VERSION=2" \
    -DCMAKE_INSTALL_PREFIX=/usr \
    .

  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}

# vim:set ts=2 sw=2 et: