void-packages/srcpkgs/knewstuff/template

30 lines
881 B
Bash

# Template file for 'knewstuff'
pkgname=knewstuff
version=5.51.0
revision=1
build_style=cmake
configure_args="-DBUILD_TESTING=OFF"
hostmakedepends="extra-cmake-modules"
makedepends="kio-devel"
short_desc="KDE Framework for downloading and sharing additional application data"
maintainer="John <johnz@posteo.net>"
license="LGPL-2.1-or-later"
homepage="https://projects.kde.org/projects/frameworks/knewstuff"
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=8ab3d9dc5471cb93c4b7607a6230a9274deef89385f99cde69eba9cf918648ce
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools qt5-qmake python"
fi
knewstuff-devel_package() {
short_desc+=" - development"
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/qt5/mkspecs
vmove usr/lib/cmake
vmove "usr/lib/*.so"
}
}