void-packages/srcpkgs/kpackage/template
2021-08-17 00:06:54 +02:00

27 lines
891 B
Bash

# Template file for 'kpackage'
pkgname=kpackage
version=5.85.0
revision=1
build_style=cmake
hostmakedepends="kcoreaddons extra-cmake-modules gettext"
makedepends="karchive-devel kconfig-devel kcoreaddons-devel ki18n-devel kdoctools-devel"
short_desc="KDE Installation and loading of additional content as packages"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.1-or-later"
homepage="https://invent.kde.org/frameworks/kpackage"
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=b2c6c90e5a9b3c46fe0fad06ab58f7356447e3c90213882c8006683b59c13c93
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools qt5-qmake python kdoctools"
fi
kpackage-devel_package() {
short_desc+=" - development"
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove "usr/lib/*.so"
}
}