mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
add klibtorrent
This commit is contained in:
parent
d35ed87ef5
commit
03d690b9d3
39
support-pkg-libktorrent-svn/PKGBUILD
Normal file
39
support-pkg-libktorrent-svn/PKGBUILD
Normal 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
|
||||
}
|
27
support-pkg-libktorrent/PKGBUILD
Normal file
27
support-pkg-libktorrent/PKGBUILD
Normal 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user