updated on Mon Jan 16 12:07:49 UTC 2012
[aur-mirror.git] / ktorrent-git / PKGBUILD
blobf51ad6dba14d88366b4d61c4fb3526162f93d30a
1 # Maintainer: Daniel Riedemann <daniel.riedemann [at] googlemail [dot] com>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
4 pkgname=ktorrent-git
5 pkgver=20110222
6 pkgrel=1
7 pkgdesc='A powerful BitTorrent client'
8 arch=('i686' 'x86_64')
9 url="http://ktorrent.org/"
10 license=('GPL')
11 depends=('kdebase-workspace' 'libktorrent-git' 'taglib')
12 makedepends=('cmake' 'automoc4' 'git' 'boost' 'docbook-xsl')
13 provides=(ktorrent)
14 conflicts=(ktorrent)
15 source=()
16 md5sums=()
18 _gitroot="git://anongit.kde.org/ktorrent"
19 _gitname="ktorrent"
21 build(){
22   cd ${srcdir}
24   if [[ -d $_gitname ]]; then
25         (cd $_gitname && git pull origin)
26   else
27         git clone $_gitroot $_gitname
28   fi
30   mkdir -p build
31   cd build
33   cmake ../${_gitname} \
34     -DCMAKE_BUILD_TYPE=Release \
35     -DCMAKE_SKIP_RPATH=ON \
36     -DCMAKE_INSTALL_PREFIX=/usr
37   make
40 package() {
41   cd ${srcdir}/build
42   make DESTDIR=${pkgdir} install