desktop/ktorrent/PKGBUILD

38 lines
1.1 KiB
Bash
Raw Normal View History

2016-04-16 22:35:20 +08:00
# Include global configuration
source ../kdeapps.conf
2010-05-31 06:57:45 +08:00
pkgname=ktorrent
2016-04-19 16:33:57 +08:00
pkgver=5.0.1
pkgrel=3
2014-06-25 00:26:51 +08:00
pkgdesc="A powerful BitTorrent client for KDE"
2015-11-12 06:52:00 +08:00
arch=('x86_64')
2014-06-25 00:26:51 +08:00
url='http://ktorrent.pwsp.net/'
2010-05-31 06:57:45 +08:00
license=('GPL2')
2016-04-19 16:33:57 +08:00
depends=('libktorrent' 'knotifyconfig' 'kcmutils' 'kdelibs4support' 'kross')
makedepends=('extra-cmake-modules' 'kdoctools' 'python3' 'boost' 'taglib' 'geoip' 'plasma-workspace' 'kdnssd')
optdepends=('plasma-workspace: shutdown plugin' 'kdnssd: zeroconf plugin' 'taglib: mediaplayer plugin')
2014-06-25 00:26:51 +08:00
install=${pkgname}.install
options=('debug')
source=("http://download.kde.org/stable/ktorrent/5.0/${pkgname}-${pkgver}.tar.xz"
"KSharedConfig.patch::https://quickgit.kde.org/?p=ktorrent.git&a=commitdiff&h=f48acc22f0105ce6bac63294d248873ae231c6cc&o=plain")
sha1sums=('0f20f529ed08a7d13008945e961c637352aa43b6'
'698dc126b34cee23896fdc80955cea414c991cb6')
2014-06-25 00:26:51 +08:00
prepare() {
2016-04-16 22:35:20 +08:00
mkdir -p build
cd ${pkgname}-${pkgver}
patch -Np1 -i "${srcdir}/KSharedConfig.patch"
2014-06-25 00:26:51 +08:00
}
2010-05-31 06:57:45 +08:00
build() {
2014-06-25 00:26:51 +08:00
cd build
2016-04-16 22:35:20 +08:00
cmake_kf5 -DWITH_SYSTEM_GEOIP=ON ../${pkgname}-${pkgver}
2014-06-25 00:26:51 +08:00
make
}
2010-05-31 06:57:45 +08:00
2014-06-25 00:26:51 +08:00
package() {
cd build
make DESTDIR="${pkgdir}" install
2010-05-31 06:57:45 +08:00
}