32 lines
912 B
Bash
32 lines
912 B
Bash
# Template file for 'libktorrent'
|
|
pkgname=libktorrent
|
|
version=21.04.1
|
|
revision=1
|
|
build_style=cmake
|
|
hostmakedepends="extra-cmake-modules gettext qt5-host-tools qt5-qmake python3 doxygen"
|
|
makedepends="qt5-devel karchive-devel ksolid-devel kio-devel ki18n-devel
|
|
kcrash-devel gmp-devel qca-qt5-devel"
|
|
short_desc="BitTorrent protocol implementation"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://apps.kde.org/en/ktorrent"
|
|
distfiles="${KDE_SITE}/release-service/${version}/src/libktorrent-${version}.tar.xz"
|
|
checksum=f6ee742ca5e3f64bc56e94cd65dd8b69ecbb9b2a901262f6274be69b22793e9c
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" kcoreaddons"
|
|
fi
|
|
|
|
pre_check() {
|
|
export QT_QPA_PLATFORM=offscreen
|
|
}
|
|
|
|
libktorrent-devel_package() {
|
|
depends="${sourcepkg}-${version}_${revision} gmp-devel"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/cmake
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|