46 lines
1.5 KiB
Bash
46 lines
1.5 KiB
Bash
# Template file for 'qt6-remoteobjects'
|
|
pkgname=qt6-remoteobjects
|
|
version=6.6.0
|
|
revision=1
|
|
build_style=cmake
|
|
hostmakedepends="perl qt6-declarative-host-tools pkg-config"
|
|
makedepends="qt6-declarative-devel qt6-connectivity-devel"
|
|
# Not a strict dependency, but it's 2022, everyone should use TLS
|
|
depends="qt6-plugin-tls-openssl"
|
|
checkdepends="$depends"
|
|
short_desc="Cross-platform application and UI framework - Remote Objects"
|
|
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
|
|
license="(LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only) AND GPL-3.0-only with Qt-GPL-exception-1.0"
|
|
homepage="https://qt.io/"
|
|
distfiles="http://download.qt.io/official_releases/qt/${version%.*}/${version}/submodules/qtremoteobjects-everywhere-src-${version}.tar.xz"
|
|
checksum=261194e35bb9420225f095c58a5a549686797a3d2b7ea6f0d582d7d681f1f76b
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" qt6-remoteobjects"
|
|
configure_args="-DQT_FORCE_BUILD_TOOLS=true"
|
|
fi
|
|
|
|
pre_check() {
|
|
export QML2_IMPORT_PATH="$wrksrc/build/lib${XBPS_TARGET_WORDSIZE}/qt6/qml"
|
|
}
|
|
|
|
post_install() {
|
|
rm -rf ${DESTDIR}/usr/tests
|
|
}
|
|
|
|
qt6-remoteobjects-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}
|
|
qt6-declarative-devel>=${version}_1"
|
|
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/qt6/qml/QtRemoteObjects/plugins.qmltypes
|
|
vmove "usr/lib/*.so"
|
|
vmove "usr/lib/*.prl"
|
|
}
|
|
}
|