void-packages/srcpkgs/qt6-quick3d/template

61 lines
1.6 KiB
Bash

# Template file for 'qt6-quick3d'
pkgname=qt6-quick3d
version=6.4.2
revision=1
build_style=cmake
hostmakedepends="perl qt6-declarative-host-tools qt6-shadertools"
makedepends="qt6-base-devel qt6-declarative-devel qt6-shadertools-devel
qt6-quicktimeline libassimp-devel"
short_desc="Cross-platform application and UI framework - Quick3d"
maintainer="John <me@johnnynator.dev>"
license="GPL-3.0-or-later"
homepage="https://qt.io/"
distfiles="http://download.qt.io/official_releases/qt/${version%.*}/${version}/submodules/qtquick3d-everywhere-src-${version}.tar.xz"
checksum=953d3b6ca6dc00563ceea33d51f25e22b1788ab5aa861941100f6a1b652926a7
subpackages="qt6-quick3d-tools qt6-quick3d-devel"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt6-quick3d-tools"
configure_args="-DQT_FORCE_BUILD_TOOLS=true"
fi
if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
# possibly a qt6-shadertools bug, actually
broken="Shader baking failed: Cannot resolve expression type."
fi
do_check() {
cd build
ctest -E tst_qquick3drotationdata
}
post_install() {
rm -rf ${DESTDIR}/usr/tests
# Maybe new package for embree?
rm -rf ${DESTDIR}/usr/lib/libQt6BundledEmbree.a
}
qt6-quick3d-tools_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - Tools"
pkg_install() {
vmove usr/lib/qt6/bin
vmove "usr/lib/cmake/*Tools"
}
}
qt6-quick3d-devel_package() {
depends="qt6-quick3d-tools>=${version}_${revision} qt6-base-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove usr/lib/metatypes
vmove usr/lib/pkgconfig
vmove usr/lib/qt6/mkspecs
vmove "usr/lib/*.so"
vmove "usr/lib/*.prl"
vmove usr/share/qt6/modules
}
}