summaryrefslogtreecommitdiff
path: root/extra/ktorrent/PKGBUILD
blob: 9c937510ee1ff941728d06532c52102dbe921f3f (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
39
40
41
42
# $Id: PKGBUILD 205598 2014-02-08 16:27:50Z andrea $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Travis Willard <travisw@wmpub.ca>
# Contributor: Georg Grabler <ggrabler@gmail.com>

pkgname=ktorrent
pkgver=4.3.1
pkgrel=2
pkgdesc="A powerful BitTorrent client for KDE"
arch=('i686' 'x86_64' 'mips64el')
url='http://ktorrent.pwsp.net/'
license=('GPL2')
depends=('libktorrent' 'kdebase-runtime' 'taglib')
makedepends=('automoc4' 'cmake' 'boost' 'kdebase-workspace')
install=${pkgname}.install
source=("http://ktorrent.pwsp.net/downloads/${pkgver}/${pkgname}-${pkgver}.tar.bz2"
        'kde412.patch'
        'kdebug-315239.patch')
sha1sums=('6b56bab48dd07805225c3d4d5d5d1c4c1def241e'
          'f2c0e05913b2f21b593818e2cd3547d09f86be86'
          'd247aecbbbbbda3eef8dcb51d3db244b1c845f85')

prepare() {
	mkdir build

  cd ${pkgname}-${pkgver}
  patch -p1 -i "${srcdir}"/kde412.patch
  patch -p1 -i "${srcdir}"/kdebug-315239.patch
}

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

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