void-packages/srcpkgs/qt6-qt5compat/template
2025-02-23 15:19:24 +01:00

45 lines
1.4 KiB
Bash

# Template file for 'qt6-qt5compat'
pkgname=qt6-qt5compat
version=6.8.2
revision=1
build_style=cmake
configure_args="-DQT_FEATURE_textcodec=ON -DQT_FEATURE_codecs=ON
-DQT_FEATURE_iconv=ON -DQT_FEATURE_big_codecs=ON"
hostmakedepends="qt6-base qt6-declarative-host-tools perl pkg-config"
makedepends="qt6-base-private-devel qt6-declarative-private-devel
qt6-shadertools-devel"
short_desc="Cross-platform application and UI framework - Qt5 Compatibilty 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/qt5compat-everywhere-src-${version}.tar.xz"
checksum=b53154bc95ec08e2ddc266bef250fbd684b4eb2df96bc8c27d26b1e953495316
if [ "$XBPS_CHECK_PKGS" ]; then
configure_args="-DQT_BUILD_TESTS=ON"
fi
do_check() {
cd build
local ctest_exclude="(module_includes)"
ctest -E "$ctest_exclude"
}
post_install() {
rm -rf ${DESTDIR}/usr/tests
}
qt6-qt5compat-devel_package() {
depends="${sourcepkg}>=${version}_${revision} qt6-base-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove usr/lib/qt6/metatypes
vmove usr/lib/pkgconfig
vmove usr/lib/qt6/mkspecs
vmove "usr/lib/*.so"
vmove "usr/lib/*.prl"
vmove usr/lib/qt6/modules
}
}