void-packages/srcpkgs/qt6-declarative/template

57 lines
1.7 KiB
Bash
Raw Normal View History

2020-10-09 18:34:02 +00:00
# Template file for 'qt6-declarative'
pkgname=qt6-declarative
2021-06-07 15:53:31 +00:00
version=6.1.1
2020-10-09 18:34:02 +00:00
revision=1
wrksrc="qtdeclarative-everywhere-src-${version}"
build_style=cmake
configure_args=" -DQT_HOST_PATH=/usr
-DQT_BUILD_TOOLS_WHEN_CROSSCOMPILING=true"
hostmakedepends="qt6-base-devel perl pkg-config wayland-devel
qt6-declarative-devel"
makedepends="qt6-base-devel Vulkan-Headers"
short_desc="Cross-platform application and UI framework - Declarative"
maintainer="John <me@johnnynator.dev>"
license="GPL-3.0-only with Qt-GPL-exception-1.0, LGPL-3.0-only, GPL-2.0-or-later"
homepage="https://www.qt.io"
distfiles="https://download.qt.io/official_releases/qt/${version%.*}/${version}/submodules/qtdeclarative-everywhere-src-${version}.tar.xz"
2021-06-07 15:53:31 +00:00
checksum=805394307479ebca9899996af8357037c4f1ff8b783162ade0c5a05cea7ee2d2
if [ "$XBPS_CHECK_PKGS" ]; then
configure_args+=" -DQT_BUILD_TESTS=ON"
fi
pre_check() {
export QML2_IMPORT_PATH="$wrksrc/build/lib/qt6/qml"
}
do_check() {
cd build
ctest -E '(tst_qqmllocale|text|tst_qquickwidget)'
}
2020-10-09 18:34:02 +00:00
qt6-declarative-tools_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - tools"
pkg_install() {
vmove usr/lib/qt6/plugins/qmltooling
for bin in qmlcachegen qmleasing qmlformat qmlimportscanner \
qmllint qmlplugindump qmlpreview qmlprofiler qmlscene \
qmltestrunner qmltime qmltyperegistrar; do
vmove usr/lib/qt6/bin/$bin
done
}
}
qt6-declarative-devel_package() {
depends="${sourcepkg}>=${version}_${revision} qt6-base-devel>=${version}_1
qt6-declarative-tools>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove usr/lib/qt6/mkspecs
vmove "usr/lib/*.so"
vmove "usr/lib/*.prl"
}
}