Commit 75e1764d authored by Manuel Tortosa's avatar Manuel Tortosa

Add ktorrent

parent 0b32aa13
# $Id: PKGBUILD 72842 2010-03-20 13:36:03Z pierre $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Travis Willard <travisw@wmpub.ca>
# Contributor: Georg Grabler <ggrabler@gmail.com>
# Maintainer: Manuel Tortosa <manutortosa@gmail.com>
pkgname=ktorrent
pkgver=3.3.4
pkgrel=2
pkgver=4.0.0
pkgrel=1
ktorver=4.0
pkgdesc="A BitTorrent program for KDE"
arch=('i686' 'x86_64')
url="http://ktorrent.org"
license=('GPL2')
depends=('kdelibs' 'gmp' 'qca' 'libxft' 'kdebase-runtime' 'taglib' 'hicolor-icon-theme')
# 'kdebase-runtime' is needed for some of the icons in the interface to show
makedepends=('autoconf' 'perl' 'automoc4' 'cmake' 'kdepimlibs' 'kdebase-workspace')
# 'kdebase-workspace' is needed to enable plasmoid building
source=("http://ktorrent.org/downloads/${pkgver}/${pkgname}-${pkgver}.tar.bz2"
'httpserver.patch')
install=ktorrent.install
depends=('kdelibs' 'kdebase-runtime' 'kdepimlibs' 'qca' 'gmp' 'taglib' 'libktorrent')
makedepends=('cmake' 'automoc4')
source=(http://ktorrent.org/downloads/${ktorver}/ktorrent-${pkgver}.tar.bz2)
options=('libtool')
md5sums=('7d7dba06a78d09494199bd4ef82e5527'
'1f25b94615b0bbfa0457c99fb20de3e6')
md5sums=('7862b09dfc1282053c7304f98f3ce0cf')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
cd ${srcdir}/ktorrent-4.0.0
# build time patch
patch -Np0 -i ${srcdir}/httpserver.patch || return 1
cd ${srcdir}
mkdir build
cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_SKIP_RPATH=ON \
-DENABLE_MEDIAPLAYER_PLUGIN=false
cmake . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
make || return 1
}
package() {
cd ${srcdir}/build
make DESTDIR=${pkgdir} install
make DESTDIR=${pkgdir} install
}
# Maintainer: Manuel Tortosa <manutortosa@gmail.com>
pkgname=libktorrent
pkgver=1.0.0
pkgrel=1
ktorver=4.0
pkgdesc="A BitTorrent program for KDE"
arch=('i686' 'x86_64')
url="http://ktorrent.org"
license=('GPL2')
depends=('kdelibs')
makedepends=('autoconf' 'perl' 'automoc4' 'cmake' 'kdepimlibs' 'kdebase-workspace')
source=(http://ktorrent.org/downloads/${ktorver}/libktorrent-${pkgver}.tar.bz2)
options=('libtool')
md5sums=('b409ef0381343d998abce8c85073f7d3')
build() {
cd ${srcdir}/libktorrent-1.0.0
cmake . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
make || return 1
make DESTDIR=${pkgdir} install
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment