add klibtorrent

This commit is contained in:
amnon 2010-07-11 11:50:56 +00:00
parent d35ed87ef5
commit 03d690b9d3
2 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,39 @@
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=libktorrent-svn
pkgver=1148625
pkgrel=1
pkgdesc="Library for KDE Bittorrent client."
depends=('kdelibs')
makedepends=('autoconf' 'perl' 'automoc4' 'cmake' 'kdepimlibs' 'kdebase-workspace')
conflicts=('libktorrent')
provides=('libktorrent')
url=(http://ktorrent.org)
license="GPL"
arch=('i686' 'x86_64')
_svntrunk=svn://anonsvn.kde.org/home/kde/trunk/extragear/network/libktorrent
_svnmod=libktorrent
build() {
cd $startdir/src
svn co $_svntrunk $_svnmod
msg "SVN checkout done or server timeout"
msg "Starting make..."
cp -r $_svnmod $_svnmod-build
cd $_svnmod-build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=DEB
make || return 1
make DESTDIR=$startdir/pkg install || return 1
rm -rf $startdir/src/$_svnmod-build
}

View File

@ -0,0 +1,27 @@
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=libktorrent
pkgver=1.0.2
pkgrel=2
ktorver=4.0.2
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=('1d2a056de32db4c9e3224eac517f26bd')
build() {
cd ${srcdir}/libktorrent-1.0.2
cmake . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
make || return 1
make DESTDIR=${pkgdir} install
}