summaryrefslogtreecommitdiff
path: root/extra/libktorrent/PKGBUILD
blob: 62fe72ae835d215a20b177374dde499bc61a2f7d (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
# $Id: PKGBUILD 164220 2012-07-27 18:35:04Z ronald $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Maintainer: Andrea Scarpino <andrea@archlinux.org>

pkgname=libktorrent
pkgver=1.2.1
pkgrel=2
pkgdesc="A BitTorrent protocol implementation"
arch=('i686' 'x86_64')
url="http://ktorrent.org/"
license=('GPL2')
depends=('kdelibs')
makedepends=('automoc4' 'cmake' 'boost' 'doxygen')
source=("http://ktorrent.org/downloads/4.2.1/${pkgname}-${pkgver}-2.tar.bz2"
	"magnet.patch")
sha1sums=('857e4227c4bba685755d66581d881f893f6311ae'
          'f0156489364e5590b0b539cfe2abc929c1922ef8')

build() {
  cd "${srcdir}"

  pushd ${pkgname}-${pkgver}-2
  patch -Np1 -i ${srcdir}/magnet.patch
  popd

  mkdir build
  cd build
  cmake ../${pkgname}-${pkgver}-2 \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  cd "${srcdir}/build"
  make DESTDIR="${pkgdir}" install
}