updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / libktorrent-git / PKGBUILD
blob5a277e5052f5f279e0630bcac94e640f867eb679
1 # Contributor: Andrea Scarpino <andrea@archlinux.org>
3 pkgname=libktorrent-git
4 pkgver=20110221
5 pkgrel=1
6 pkgdesc='A BitTorrent protocol implementation'
7 arch=('i686' 'x86_64')
8 url="https://projects.kde.org/projects/extragear/network/libktorrent"
9 license=('GPL')
10 depends=('kdelibs')
11 makedepends=('cmake' 'automoc4' 'git' 'boost' 'doxygen')
12 provides=(libktorrent)
13 conflicts=(libktorrent)
14 source=()
15 md5sums=()
17 _gitroot="git://anongit.kde.org/libktorrent.git"
18 _gitname="libktorrent"
20 build(){
21   cd ${srcdir}
23   if [[ -d $_gitname ]]; then
24         (cd $_gitname && git pull origin)
25   else
26         git clone $_gitroot $_gitname
27   fi
29   mkdir -p build
30   cd build
32   cmake ../${_gitname} \
33     -DCMAKE_BUILD_TYPE=Release \
34     -DCMAKE_SKIP_RPATH=ON \
35     -DCMAKE_INSTALL_PREFIX=/usr
36   make
39 package() {
40   cd ${srcdir}/build
41   make DESTDIR=${pkgdir} install