2020-12-21 15:47:47 +01:00
|
|
|
# Template file for 'qt6-tools'
|
|
|
|
pkgname=qt6-tools
|
2021-06-07 17:54:03 +02:00
|
|
|
version=6.1.1
|
2020-12-21 15:47:47 +01:00
|
|
|
revision=1
|
|
|
|
wrksrc="qttools-everywhere-src-${version}"
|
|
|
|
build_style=cmake
|
|
|
|
configure_args="-DQT_HOST_PATH=/usr "
|
|
|
|
hostmakedepends="qt6-base-devel perl"
|
|
|
|
makedepends="qt6-base-devel libatomic-devel"
|
|
|
|
short_desc="Cross-platform application and UI framework (QT6) - qt6-tools component"
|
|
|
|
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://qt.io/"
|
|
|
|
distfiles="http://download.qt.io/official_releases/qt/${version%.*}/${version}/submodules/qttools-everywhere-src-${version}.tar.xz"
|
2021-06-07 17:54:03 +02:00
|
|
|
checksum=cba8d9a836e83b7a5e6d068239635b261f7ca4a059992b2b66cd546380091273
|
|
|
|
|
|
|
|
if [ "$XBPS_CHECK_PKGS" ]; then
|
|
|
|
configure_args+=" -DQT_BUILD_TESTS=ON"
|
|
|
|
fi
|
|
|
|
|
|
|
|
do_check() {
|
|
|
|
cd build
|
|
|
|
# Some of these tests expect that qt6-tools is already
|
|
|
|
# installed in /usr/lib/qt6
|
|
|
|
ctest -E 'tst_(lrelease|lconvert|lupdate|qtattributionsscanner|qhelpcontentmodel|qhelpenginecore|qhelpgenerator|qhelpindexmode)'
|
|
|
|
}
|
2020-12-21 15:47:47 +01:00
|
|
|
|
|
|
|
qt6-tools-devel_package() {
|
|
|
|
depends="${sourcepkg}>=${version}_${revision} qt6-base-devel>=${version}_1"
|
|
|
|
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"
|
|
|
|
}
|
|
|
|
}
|