void-packages/srcpkgs/kitemviews/template

30 lines
918 B
Bash

# Template file for 'kitemviews'
pkgname=kitemviews
version=5.43.0
revision=1
build_style=cmake
configure_args="-DBUILD_TESTING=OFF"
hostmakedepends="extra-cmake-modules"
makedepends="qt5-devel qt5-tools-devel"
short_desc="Set of item views extending the Qt model-view framework"
maintainer="Denis Revin <denis.revin@gmail.com>"
license="LGPL-2"
homepage="https://projects.kde.org/projects/frameworks/kitemviews"
distfiles="http://download.kde.org/stable/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=304cbdd832b12c9e2b08f29efc5d876a9de60076d444c3d502849fdc21ec86a7
if [ -n "$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/cmake
vmove usr/lib/*.so
}
}