void-packages/srcpkgs/ktorrent/template

34 lines
1.3 KiB
Bash

# Template file for 'ktorrent'
pkgname=ktorrent
version=23.04.0
revision=1
build_style=cmake
configure_args="-DWITH_SYSTEM_GEOIP=ON"
hostmakedepends="extra-cmake-modules qt5-host-tools qt5-qmake gettext"
makedepends="qt5-devel qt5-script-devel ki18n-devel kio-devel kxmlgui-devel
knotifications-devel ksolid-devel kconfig-devel kcoreaddons-devel kdoctools-devel
kross-devel kcmutils-devel sonnet-devel kdbusaddons-devel kcrash-devel
karchive-devel knotifyconfig-devel libktorrent-devel kplotting-devel
gmp-devel taglib-devel kdnssd-devel kdewebkit-devel geoip-devel syndication-devel"
short_desc="BitTorrent client based on the KDE platform"
maintainer="Norbert Vegh <vegh@norvegh.com>"
license="GPL-2.0-or-later"
homepage="https://apps.kde.org/ktorrent"
changelog="https://kde.org/announcements/changelogs/gear/${version}/#ktorrent"
distfiles="${KDE_SITE}/release-service/${version}/src/ktorrent-${version}.tar.xz"
checksum=a06a23eea3a0db8a543bbe477493ebeb8396b78b9e0f86384c3ef1eb8d7fb53e
if [ "$CROSS_BUILD" ]; then
configure_args+=" -DDESKTOPTOJSON_EXECUTABLE=/usr/bin/desktoptojson"
hostmakedepends+=" kdoctools kconfig kcoreaddons"
fi
pre_configure() {
# The ECM FindTaglib.cmake gives different variable names
grep -rl TAGLIB_ | xargs -n1 sed -i -e "s;TAGLIB_;Taglib_;g"
}
post_install() {
vdoc "${FILESDIR}/README.voidlinux"
}