void-packages/srcpkgs/kitemviews/template
2021-02-19 20:34:31 +01:00

30 lines
951 B
Bash

# Template file for 'kitemviews'
pkgname=kitemviews
version=5.79.0
revision=1
build_style=cmake
configure_args="-DBUILD_TESTING=OFF"
hostmakedepends="kcoreaddons extra-cmake-modules"
makedepends="qt5-devel qt5-tools-devel"
short_desc="Set of item views extending the Qt model-view framework"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.0-only, LGPL-2.0-or-later"
homepage="https://invent.kde.org/frameworks/kitemviews"
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=d4022ec9599e5b99c6c3e11e1145e6f85d1a87a0d57d9a42aec24605bb87415c
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-qmake qt5-host-tools qt5-tools-devel"
fi
kitemviews-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"
}
}