void-packages/srcpkgs/kcompletion/template
2020-12-14 18:12:14 +01:00

33 lines
940 B
Bash

# Template file for 'kcompletion'
pkgname=kcompletion
version=5.77.0
revision=1
build_style=cmake
hostmakedepends="kcoreaddons extra-cmake-modules"
makedepends="kconfig-devel kwidgetsaddons-devel"
short_desc="KDE Powerful completion framework"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.0-or-later"
homepage="https://invent.kde.org/frameworks/kcompletion"
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=2ed7c90a575de468fd025688e7aa566b30003f4e43b1d7ed0c5dacafa0abf3d4
if [ "CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools qt5-qmake qt5-tools-devel"
fi
pre_check() {
export QT_QPA_PLATFORM=offscreen
}
kcompletion-devel_package() {
short_desc+=" - development"
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/qt5/mkspecs
vmove usr/lib/qt5/plugins/designer
vmove usr/lib/cmake
vmove "usr/lib/*.so"
}
}