summaryrefslogtreecommitdiff
path: root/extra/ktorrent/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/ktorrent/PKGBUILD')
-rw-r--r--extra/ktorrent/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/extra/ktorrent/PKGBUILD b/extra/ktorrent/PKGBUILD
new file mode 100644
index 000000000..b29506657
--- /dev/null
+++ b/extra/ktorrent/PKGBUILD
@@ -0,0 +1,41 @@
+# $Id: PKGBUILD 115087 2011-03-16 19:19:11Z andrea $
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: Travis Willard <travisw@wmpub.ca>
+# Contributor: Georg Grabler <ggrabler@gmail.com>
+
+pkgname=ktorrent
+pkgver=4.1.0
+pkgrel=1
+pkgdesc="A BitTorrent program for KDE"
+arch=('i686' 'x86_64')
+url="http://ktorrent.org"
+license=('GPL2')
+depends=('libktorrent' 'kdebase-workspace' 'taglib')
+makedepends=('automoc4' 'cmake' 'boost')
+source=("http://ktorrent.org/downloads/${pkgver}/${pkgname}-${pkgver}.tar.bz2"
+ 'httpserver.patch')
+install=${pkgname}.install
+options=('libtool')
+md5sums=('3981c00810217e88b9772438df31df08'
+ '1f25b94615b0bbfa0457c99fb20de3e6')
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+ # build time patch
+ patch -Np0 -i ${srcdir}/httpserver.patch
+
+ cd ${srcdir}
+ mkdir build
+ cd build
+ cmake ../${pkgname}-${pkgver} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DENABLE_MEDIAPLAYER_PLUGIN=false
+ make
+}
+
+package() {
+ cd ${srcdir}/build
+ make DESTDIR=${pkgdir} install
+}