qt6-remoteobjects: split -tools

This commit is contained in:
Đoàn Trần Công Danh 2024-12-22 14:33:55 +07:00 committed by John Zimmermann
parent 52229c4068
commit 5f93ec43ff
2 changed files with 13 additions and 1 deletions

View file

@ -0,0 +1 @@
qt6-remoteobjects

View file

@ -17,10 +17,12 @@ distfiles="http://download.qt.io/official_releases/qt/${version%.*}/${version}/s
checksum=7ef2870f05614b71d1cfdd7ac12acef5294abc43da244a6e9e411f21208f59f8
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt6-remoteobjects"
hostmakedepends+=" qt6-remoteobjects-tools"
configure_args="-DQT_FORCE_BUILD_TOOLS=true"
fi
subpackages="qt6-remoteobjects-tools qt6-remoteobjects-devel"
pre_check() {
export QML2_IMPORT_PATH="$wrksrc/build/lib${XBPS_TARGET_WORDSIZE}/qt6/qml"
}
@ -29,8 +31,17 @@ post_install() {
rm -rf ${DESTDIR}/usr/tests
}
qt6-remoteobjects-tools_package() {
short_desc+=" - tools"
pkg_install() {
vmove usr/lib/qt6/libexec
vmove usr/lib/cmake/Qt6RemoteObjectsTools
}
}
qt6-remoteobjects-devel_package() {
depends="${sourcepkg}>=${version}_${revision}
qt6-remoteobjects-tools>=${version}_${revision}
qt6-declarative-devel>=${version}_1"
short_desc+=" - development files"
pkg_install() {